Debian Codegraph @

gcc/testsuite/gcc.dg/lto/c-compatible-types-1_1.c

raw
1 #include <limits.h>
2 enum a {test1, test2, test3=INT_MAX};
3 enum a a;
4 enum a *b;
5
6 void reset (void);
7
8 void
9 t()
10 {
11 if (a != test2)
12 __builtin_abort ();
13 if (*b != test2)
14 __builtin_abort ();
15 reset ();
16 if (a != test1)
17 __builtin_abort ();
18 if (*b != test1)
19 __builtin_abort ();
20 }