From 2a9bf0959b8929736a6c42b3096eed1c4d431aa6 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Tue, 22 May 2012 16:35:10 -0700 Subject: [PATCH] Add a test for Issue #2428. --- src/test/run-pass/resolve-issue-2428.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/test/run-pass/resolve-issue-2428.rs diff --git a/src/test/run-pass/resolve-issue-2428.rs b/src/test/run-pass/resolve-issue-2428.rs new file mode 100644 index 0000000000000..86af4e99fbcdb --- /dev/null +++ b/src/test/run-pass/resolve-issue-2428.rs @@ -0,0 +1,5 @@ +// xfail-test + +const foo: int = 4 >> 1; +enum bs { thing = foo } +fn main() { assert(thing as int == foo); }