aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/simple-generic-alt.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-pass/simple-generic-alt.rs b/src/test/run-pass/simple-generic-alt.rs
new file mode 100644
index 00000000..85db5c7c
--- /dev/null
+++ b/src/test/run-pass/simple-generic-alt.rs
@@ -0,0 +1,11 @@
+tag clam[T] {
+ a(T);
+}
+
+fn main() {
+ auto c = a(2);
+ alt (c) {
+ case (a[int](_)) {}
+ }
+}
+