enum [[]] E {
One [[]],
Two,
Three [[]]
};
enum [[]] { Four };
[[]] enum E2 { Five };
enum { [[]] Six };
enum E3 [[]] { Seven };
[[deprecated([""])]] int WrongArgs; [[,,,,,]] int Commas1; [[,, maybe_unused]] int Commas2; [[maybe_unused,,,]] int Commas3; [[,,maybe_unused,]] int Commas4; [[foo bar]] int NoComma;
struct [[]] S1 {
int i [[]];
int [[]] j;
int k[10] [[]];
int l[[]][10];
[[]] int m, n;
int o [[]] : 12;
int [[]] : 0; int p, [[]] : 0; int q, [[]] r; [[]] int; };
[[]] struct S2 { int a; }; struct S3 [[]] { int a; };
union [[]] U {
double d [[]];
[[]] int i;
};
[[]] union U2 { double d; }; union U3 [[]] { double d; };
struct [[]] IncompleteStruct;
union [[]] IncompleteUnion;
enum [[]] IncompleteEnum;
enum __attribute__((deprecated)) IncompleteEnum2;
[[]] void f1(void);
void [[]] f2(void);
void f3 [[]] (void);
void f4(void) [[]];
void f5(int i [[]], [[]] int j, int [[]] k);
void f6(a, b) [[]] int a; int b; { }
int (*f7(a, b))(int, int) [[]] int a; int b; {
return 0;
}
[[]] int a, b;
int c [[]], d [[]];
void f8(void) [[]] {
[[]] int i, j;
int k, l [[]];
}
[[]] void f9(void) {
int i[10] [[]];
int (*fp1)(void)[[]];
int (*fp2 [[]])(void);
int * [[]] *ipp;
}
void f10(int j[static 10] [[]], int k[*] [[]]);
void f11(void) {
[[]] {}
[[]] if (1) {}
[[]] switch (1) {
[[]] case 1: [[]] break;
[[]] default: break;
}
goto foo;
[[]] foo: (void)1;
[[]] for (;;);
[[]] while (1);
[[]] do [[]] { } while(1);
[[]] (void)1;
[[]];
(void)sizeof(int [4][[]]);
(void)sizeof(struct [[]] S3 { int a [[]]; });
[[]] return;
}
[[attr]] void f12(void); [[vendor::attr]] void f13(void);
void test_asm(void) {
asm("ret" :::);
asm("foo" :: "r" (xx)); }
[[using vendor: attr1, attr2]] void f14(void);
struct [[]] S4 *s; struct S5 {};
int c = sizeof(struct [[]] S5);