aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/alt-pattern-simple.rs
diff options
context:
space:
mode:
authorRoy Frostig <[email protected]>2010-06-24 08:13:32 -0700
committerRoy Frostig <[email protected]>2010-06-24 08:13:32 -0700
commitbc286c7f2ceb5c3d2e06ec72f78d28842f94ef65 (patch)
treeeac0b9f72ce3a7c97440bc76f38f5159ecc2cdfb /src/test/run-pass/alt-pattern-simple.rs
parentUpdate README to point to github, test email notification. (diff)
downloadrust-bc286c7f2ceb5c3d2e06ec72f78d28842f94ef65.tar.xz
rust-bc286c7f2ceb5c3d2e06ec72f78d28842f94ef65.zip
Resolve and typecheck patterns in pattern alt.
Diffstat (limited to 'src/test/run-pass/alt-pattern-simple.rs')
-rw-r--r--src/test/run-pass/alt-pattern-simple.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/run-pass/alt-pattern-simple.rs b/src/test/run-pass/alt-pattern-simple.rs
new file mode 100644
index 00000000..d0a4159e
--- /dev/null
+++ b/src/test/run-pass/alt-pattern-simple.rs
@@ -0,0 +1,7 @@
+fn altsimple(int f) {
+ alt (f) {
+ case (x) {}
+ }
+}
+
+fn main() {}