1 /* { dg-do run { target lto } }
2 * { dg-options "-std=c23 -O2" }
5 /* These tests check that definitions of enums with
6 * the same underlying type can alias, even when
7 * they are not compatible. */
9 enum bar
: long { A
= 1, B
= 3 };
11 int test_bar(enum bar
* a
, void* b
)
15 enum foo
: long { C
= 2, D
= 4 }* p
= b
;
26 if (B
!= test_bar(&z
, &z
))