gcc/testsuite/gcc.dg/pr98331.c
raw| 1 | /* PR debug/98331 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-g -O2 -fcompare-debug" } */ |
| 4 | /* { dg-additional-options "-march=x86-64" { target { i?86-*-* x86_64-*-* } } } */ |
| 5 | |
| 6 | void bar (const char *); |
| 7 | unsigned long long x; |
| 8 | |
| 9 | void |
| 10 | foo (void) |
| 11 | { |
| 12 | int a = 1; |
| 13 | bar ("foo"); |
| 14 | int b = 2; |
| 15 | __atomic_fetch_add (&x, 1, 0); |
| 16 | int c = 3; |
| 17 | __builtin_unreachable (); |
| 18 | } |