Debian Codegraph @

gcc/testsuite/gcc.target/avr/torture/pr118591-2.c

raw
1 /* Test case failed on avrtiny. */
2 /* { dg-do run } */
3 /* { dg-additional-options "-std=c99 -mlra" } */
4
5 __attribute__((noipa))
6 void func2 (long a, long b)
7 {
8 static unsigned char count = 0;
9 if (b != count++)
10 __builtin_abort ();
11 }
12
13 int main (void)
14 {
15 for (long b = 0; b < 5; ++b)
16 {
17 func2 (0, b);
18 }
19
20 return 0;
21 }