aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr78229.C
blob: a52141b6b83cd2f61a8b2bc81e191d496471473f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do compile { target x86_64-*-* i?86-*-* } } */
/* { dg-options "-O2 -mbmi -w" } */

void a();
inline int b(int c) {
    int d = c;
    return __builtin_ia32_tzcnt_u32(d);
}
struct e {};
int f, g, h;
void fn3() {
    float j;
    &j;
      {
	e k;
	while (h) {
	    if (g == 0)
	      continue;
	    int i = b(g);
	    f = i;
	}
	a();
      }
}