aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/generic-tag-alt.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test/run-pass/generic-tag-alt.rs b/src/test/run-pass/generic-tag-alt.rs
index 1fcf2c38..302096fb 100644
--- a/src/test/run-pass/generic-tag-alt.rs
+++ b/src/test/run-pass/generic-tag-alt.rs
@@ -1,9 +1,16 @@
type foo[T] = tag(arm(T));
fn altfoo[T](foo[T] f) {
+ auto hit = false;
alt (f) {
- case (arm(x)) {}
+ case (arm(x)) {
+ log "in arm";
+ hit = true;
+ }
}
+ check (hit);
}
-fn main() {}
+fn main() {
+ altfoo[int](arm[int](10));
+}