gcc/testsuite/gcc.dg/pr113659.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fno-tree-sra" } */ |
| 3 | /* { dg-additional-options "-msse4.1" { target { x86_64-*-* i?86-*-* } } } */ |
| 4 | |
| 5 | struct Foo { |
| 6 | int *ptr; |
| 7 | }; |
| 8 | int Baz(struct Foo first) |
| 9 | { |
| 10 | while (first.ptr) |
| 11 | if (*first.ptr++) |
| 12 | return 0; |
| 13 | __builtin_unreachable (); |
| 14 | } |