AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr101278.c
blob1d25658f37db0cf8806f229256a0ecf5e094bbda
1 /* { dg-do run } */
3 struct X { int counter; };
5 struct X __attribute__((noipa)) foo (struct X x)
7 x.counter++;
8 if (x.counter == 5)
9 __builtin_exit (0);
10 return x;
13 int
14 main ()
16 struct X x;
17 x.counter = 0;
18 for (int i = 0; i < 10; ++i)
19 x = foo (x);
20 __builtin_abort ();