summaryrefslogtreecommitdiffstats
path: root/src/test/ui/artificial-block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/artificial-block.rs')
-rw-r--r--src/test/ui/artificial-block.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/artificial-block.rs b/src/test/ui/artificial-block.rs
new file mode 100644
index 000000000..2e383e1a7
--- /dev/null
+++ b/src/test/ui/artificial-block.rs
@@ -0,0 +1,5 @@
+// run-pass
+
+fn f() -> isize { { return 3; } }
+
+pub fn main() { assert_eq!(f(), 3); }