gcc/testsuite/g++.dg/pr78229.C
raw| 1 | /* { dg-do compile { target x86_64-*-* i?86-*-* } } */ |
| 2 | /* { dg-options "-O2 -mbmi -w" } */ |
| 3 | |
| 4 | void a(); |
| 5 | inline int b(int c) { |
| 6 | int d = c; |
| 7 | return __builtin_ia32_tzcnt_u32(d); |
| 8 | } |
| 9 | struct e {}; |
| 10 | int f, g, h; |
| 11 | void fn3() { |
| 12 | float j; |
| 13 | &j; |
| 14 | { |
| 15 | e k; |
| 16 | while (h) { |
| 17 | if (g == 0) |
| 18 | continue; |
| 19 | int i = b(g); |
| 20 | f = i; |
| 21 | } |
| 22 | a(); |
| 23 | } |
| 24 | } |