]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1962.rs
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
[rust.git] / src / test / ui / issues / issue-1962.rs
1 // compile-flags: -D while-true
2 fn main() {
3   let mut i = 0;
4   while true  { //~ ERROR denote infinite loops with `loop
5     i += 1;
6     if i == 5 { break; }
7   }
8 }