aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/c-compatible-types_1.c
blob: ff0d16e31117c76e18753fbcb89b26a93e83e625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
enum a {test1, test2};
enum a a;
enum a *b;

void reset (void);

void
t()
{
  if (a != test2)
    __builtin_abort ();
  if (*b != test2)
    __builtin_abort ();
  reset ();
  if (a != test1)
    __builtin_abort ();
  if (*b != test1)
    __builtin_abort ();
}