RISC-V: Move mode assertion out of conditional branch in emit_insn
[official-gcc.git] / gcc / testsuite / g++.dg / pr60518.C
blobe4a80da29eedbb5c102f026a155a431f00e36c52
1 // { dg-do compile }
2 // { dg-options "-Os -fprofile-use -Wno-missing-profile" }
4 int a;
5 int fn1 () { return a == ',' || a == ';'; }
7 void fn2 ()
9     do
10           while (fn1 ())
11                   ;
12       while (1);