#if 1
typedef int INT1 __attribute__((deprecated));
typedef INT1 INT2 __attribute__ ((__deprecated__));
typedef INT1 INT1a;
typedef INT1 INT1b __attribute__ ((deprecated));
INT1 should_be_unavailable;
INT1a should_not_be_deprecated;
INT1 f1(void) __attribute__ ((deprecated));
INT1 f2(void) { return 0; }
INT2 f3(void) __attribute__ ((__deprecated__));
INT2 f4(void) { return 0; }
int f5(INT2 x);
int f6(INT2 x) __attribute__ ((__deprecated__));
typedef enum {red, green, blue} Color __attribute__((deprecated));
int g1;
int g2 __attribute__ ((deprecated));
int g3 __attribute__ ((__deprecated__));
Color k;
typedef struct {
int field1;
int field2 __attribute__ ((deprecated));
int field3;
int field4 __attribute__ ((__deprecated__));
union {
int field5;
int field6 __attribute__ ((deprecated));
} u1;
int field7:1;
int field8:1 __attribute__ ((deprecated));
union {
int field9;
int field10;
} u2 __attribute__ ((deprecated));
} S1;
int func1()
{
INT1 w;
int x __attribute__ ((deprecated));
int y __attribute__ ((__deprecated__));
int z;
int (*pf)() = f1;
z = w + x + y + g1 + g2 + g3;
return f1();
}
int func2(S1 *p)
{
S1 lp;
if (p->field1)
return p->field2;
else if (lp.field4)
return p->field3;
p->u1.field5 = g1 + p->field7;
p->u2.field9;
return p->u1.field6 + p->field8;
}
struct SS1 {
int x;
INT1 y;
} __attribute__ ((deprecated));
struct SS1 *p1;
struct __attribute__ ((__deprecated__)) SS2 {
int x;
INT1 y;
};
struct SS2 *p2;
#endif
#ifdef __cplusplus
class T {
public:
void member1(int) __attribute__ ((deprecated));
void member2(INT1) __attribute__ ((__deprecated__));
int member3(T *);
int x;
} __attribute__ ((deprecated));
T *p3;
inline void T::member1(int) {}
int T::member3(T *p)
{
p->member1(1);
(*p).member1(2);
p->member2(1);
(*p).member2(2);
p->member3(p);
(*p).member3(p);
return f1();
}
#endif