summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-7344.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-7344.rs')
-rw-r--r--tests/ui/issues/issue-7344.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-7344.rs b/tests/ui/issues/issue-7344.rs
new file mode 100644
index 000000000..f1727d0c1
--- /dev/null
+++ b/tests/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();
+}