Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr103376.c

raw
1 /* PR tree-optimization/103376 */
2
3 long long a = 0x123456789abcdef0LL, f;
4 int b, c, *d;
5
6 __attribute__((noipa)) void
7 foo (int x)
8 {
9 asm volatile ("" : : "r" (x));
10 }
11
12 int
13 main ()
14 {
15 long long e;
16 e = a;
17 if (b)
18 {
19 foo (c);
20 d = (int *) 0;
21 while (*d)
22 ;
23 }
24 f = a ^ e;
25 asm volatile ("" : "+m" (f));
26 if (f != 0)
27 __builtin_abort ();
28 return 0;
29 }