aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/alt-path.rs
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-01-27 15:50:19 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-01-27 15:56:10 -0500
commit21208f23439acfae35e615abbe791b3011b950bc (patch)
tree4ea169e6cf1a9ac8a03528c376b838c031bb536c /src/test/run-pass/alt-path.rs
parentFirst step for supporting "case (foo.bar(?zed))": Change the ast of (diff)
downloadrust-21208f23439acfae35e615abbe791b3011b950bc.tar.xz
rust-21208f23439acfae35e615abbe791b3011b950bc.zip
Handle paths correctly. This lets us handle one more test :-)
Diffstat (limited to 'src/test/run-pass/alt-path.rs')
-rw-r--r--src/test/run-pass/alt-path.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/run-pass/alt-path.rs b/src/test/run-pass/alt-path.rs
new file mode 100644
index 00000000..45faa700
--- /dev/null
+++ b/src/test/run-pass/alt-path.rs
@@ -0,0 +1,15 @@
+import m1.foo;
+mod m1 {
+ tag foo {
+ foo1;
+ foo2;
+ }
+}
+fn bar(foo x) {
+ alt(x) {
+ case (m1.foo1) {
+ }
+ }
+}
+fn main(vec[str] args) {
+}