aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr84293.h
blob: c12989624a9001eda66dced956d4076aae8072e8 (plain)
1
2
3
4
5
6
7
/* PR c/84293 unexpected warning from system header expansion.  */
#pragma GCC system_header
struct typeobject { unsigned refs; };
typedef struct object { unsigned refs; } Object;

#define INCREF_TDEF(op) (((Object*)(op))->refs++)
#define INCREF_STAG(op) (((struct object*)(op))->refs++)