gcc/testsuite/gcc.dg/torture/pr71762-3.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | static _Bool |
| 4 | foo (_Bool a, _Bool b) |
| 5 | { |
| 6 | int x = a && ! b; |
| 7 | return x != 0; |
| 8 | } |
| 9 | |
| 10 | int y = 1; |
| 11 | int main() |
| 12 | { |
| 13 | register _Bool x |
| 14 | /* Add register spec for the argv parameter to main. */ |
| 15 | #if __i386__ || __x86_64__ |
| 16 | __asm__("%esi") |
| 17 | #endif |
| 18 | ; |
| 19 | if (foo (x, y)) |
| 20 | __builtin_abort (); |
| 21 | return 0; |
| 22 | } |