diff options
Diffstat (limited to 'tests/ui/for-loop-while/break-value.rs')
-rw-r--r-- | tests/ui/for-loop-while/break-value.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/for-loop-while/break-value.rs b/tests/ui/for-loop-while/break-value.rs new file mode 100644 index 000000000..9fc49fa81 --- /dev/null +++ b/tests/ui/for-loop-while/break-value.rs @@ -0,0 +1,7 @@ +// run-pass +#![allow(unreachable_code)] +// pretty-expanded FIXME #23616 + +fn int_id(x: isize) -> isize { return x; } + +pub fn main() { loop { int_id(break); } } |