aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-14 12:51:27 -0700
committerPatrick Walton <[email protected]>2011-04-14 12:51:27 -0700
commit55ab187c9cbffc3b938b40032c6031202c3d8f50 (patch)
treef165ba5166b2f3cf823a1ce4d4660f662880896f /src/test
parentrustc: Perform type substitutions when recording locals (diff)
downloadrust-55ab187c9cbffc3b938b40032c6031202c3d8f50.tar.xz
rust-55ab187c9cbffc3b938b40032c6031202c3d8f50.zip
rustc: Add a test case for previous commit
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/simple-alt-generic-tag.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-pass/simple-alt-generic-tag.rs b/src/test/run-pass/simple-alt-generic-tag.rs
new file mode 100644
index 00000000..353dbf7e
--- /dev/null
+++ b/src/test/run-pass/simple-alt-generic-tag.rs
@@ -0,0 +1,11 @@
+tag opt[T] {
+ none;
+}
+
+fn main() {
+ auto x = none[int];
+ alt (x) {
+ case (none[int]) { log "hello world"; }
+ }
+}
+