summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr84293.c
blob: dfcc8598927c8412f79ec587094e94eb8fa95030 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/84293 unexpected warning from system header.  */
#include "./pr84293.h"
struct typeobject thing;

#pragma GCC diagnostic warning "-Wstrict-aliasing"
void __attribute__ ((optimize (2))) init ()
{
  INCREF_TDEF (&thing);
  INCREF_STAG (&thing);
}