summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum-discriminant/issue-41394-rpass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/enum-discriminant/issue-41394-rpass.rs')
-rw-r--r--tests/ui/enum-discriminant/issue-41394-rpass.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/enum-discriminant/issue-41394-rpass.rs b/tests/ui/enum-discriminant/issue-41394-rpass.rs
new file mode 100644
index 000000000..37c652523
--- /dev/null
+++ b/tests/ui/enum-discriminant/issue-41394-rpass.rs
@@ -0,0 +1,8 @@
+// run-pass
+// aux-build:issue-41394.rs
+
+extern crate issue_41394 as lib;
+
+fn main() {
+ assert_eq!(lib::foo() as u32, 42);
+}