diff options
Diffstat (limited to 'src/test/ui/issues/issue-7344.rs')
-rw-r--r-- | src/test/ui/issues/issue-7344.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-7344.rs b/src/test/ui/issues/issue-7344.rs new file mode 100644 index 000000000..f1727d0c1 --- /dev/null +++ b/src/test/ui/issues/issue-7344.rs @@ -0,0 +1,22 @@ +// run-pass +#![allow(unused_must_use)] +// pretty-expanded FIXME #23616 + +#![allow(unreachable_code)] + +fn foo() -> bool { false } + +fn bar() { + return; + !foo(); +} + +fn baz() { + return; + if "" == "" {} +} + +pub fn main() { + bar(); + baz(); +} |