[PR c/84293] Unexpected strict-alias warning
[official-gcc.git] / gcc / testsuite / c-c++-common / pr84293.c
blobdfcc8598927c8412f79ec587094e94eb8fa95030
1 /* PR c/84293 unexpected warning from system header. */
2 #include "./pr84293.h"
3 struct typeobject thing;
5 #pragma GCC diagnostic warning "-Wstrict-aliasing"
6 void __attribute__ ((optimize (2))) init ()
8 INCREF_TDEF (&thing);
9 INCREF_STAG (&thing);