aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-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) {
+}