* lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging.
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / c-compatible-types_1.c
blobff0d16e31117c76e18753fbcb89b26a93e83e625
1 enum a {test1, test2};
2 enum a a;
3 enum a *b;
5 void reset (void);
7 void
8 t()
10 if (a != test2)
11 __builtin_abort ();
12 if (*b != test2)
13 __builtin_abort ();
14 reset ();
15 if (a != test1)
16 __builtin_abort ();
17 if (*b != test1)
18 __builtin_abort ();