Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr116544.c

raw
1 /* { dg-options "-fno-strict-aliasing -fwrapv" }
2 /* { dg-do run { target longlong64 } } */
3
4 extern void abort (void);
5 long long a;
6 signed char b[60];
7 signed char c;
8 long long d[60];
9 int e[30];
10 long long *f = d;
11 static void g(long long *j, long k) { *j = k; }
12 int main() {
13 d[5] = 0x100000000;
14 for (int h = 2; h < 7; h += 3)
15 for (int i = 0; i < (c || b[h]) + 10; i += 11)
16 e[2] = f[h];
17 g(&a, e[2]);
18 if (a != 0)
19 abort ();
20 return 0;
21 }
22