1 /* { dg-do run { target lto } }
2 * { dg-options "-std=c23 -flto -O2" }
5 /* These tests check that compatible definitions of
6 tagged types can alias the original definitions
11 int test_foo(struct foo
* a
, void* b
)
15 struct foo
{ int x
; }* p
= b
;
22 enum bar
{ A
= 1, B
= 3 };
24 int test_bar(enum bar
* a
, void* b
)
28 enum bar
{ A
= 1, B
= 3 }* p
= b
;
39 if (2 != test_foo(&y
, &y
))
44 if (B
!= test_bar(&z
, &z
))