Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr49145.c

raw
1 /* { dg-require-effective-target untyped_assembly } */
2 /* { dg-additional-options "-fpermissive" } */
3
4 static int
5 func1 (int a, int b)
6 {
7 return b ? a : a / b;
8 }
9
10 static unsigned char
11 func2 (unsigned char a, int b)
12 {
13 return b ? a : b;
14 }
15
16 int i;
17
18 void
19 func3 (const int arg)
20 {
21 for (i = 0; i != 10; i = foo ())
22 {
23 if (!arg)
24 {
25 int j;
26 for (j = 0; j < 5; j += 1)
27 {
28 int *ptr;
29 *ptr = func2 (func1 (arg, *ptr), foo (arg));
30 }
31 }
32 }
33 }