aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-27 11:19:43 -0700
committerGraydon Hoare <[email protected]>2010-07-27 11:19:43 -0700
commit4d31cf1dc58794b8f72240eb19c48b392e9de7b2 (patch)
treea5b4c7eb4cc39dac8d1a86cc13b8526c4c7f730b /src/test
parentSlight shaving on RA, no more optimizing today. It's fast enough for now. (diff)
downloadrust-4d31cf1dc58794b8f72240eb19c48b392e9de7b2.tar.xz
rust-4d31cf1dc58794b8f72240eb19c48b392e9de7b2.zip
Distill semantics of use-def maps to fewer and more-obvious words.
- Remove redundant uses of 'resolve' and 'referent' in semant. - Use defn, defn_id, lval, lval_base more consistently. - Make associated query functions more consistent. - Closes #127.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/spawn-module-qualified.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/run-pass/spawn-module-qualified.rs b/src/test/run-pass/spawn-module-qualified.rs
new file mode 100644
index 00000000..68f665df
--- /dev/null
+++ b/src/test/run-pass/spawn-module-qualified.rs
@@ -0,0 +1,9 @@
+fn main() {
+ auto x = spawn m.child(10);
+ join x;
+}
+mod m {
+ fn child(int i) {
+ log i;
+ }
+}