Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20241029-1.c

raw
1 /* PR rtl-optimization/117327 */
2 /* Testcase by Brad Moody <[email protected]> */
3
4 __attribute__((noinline))
5 void foo(int *self, int *x)
6 {
7 __builtin_puts ("foo\n");
8
9 if (x) {
10 while (1) {
11 ++*self;
12 if (*self == 6) break;
13 if (*self == 7) __builtin_unreachable();
14 }
15 }
16 }
17
18 int main (void)
19 {
20 int y = 0;
21 foo (&y, 0);
22 return 0;
23 }