diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-36856.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-36856.rs b/src/test/ui/issues/issue-36856.rs new file mode 100644 index 000000000..5657ba69f --- /dev/null +++ b/src/test/ui/issues/issue-36856.rs @@ -0,0 +1,16 @@ +// run-pass +// Regression test for #36856. + +// compile-flags:-g +// ignore-asmjs wasm2js does not support source maps yet + +fn g() -> bool { + false +} + +pub fn main() { + let a = !g(); + if a != !g() { + panic!(); + } +} |