111
|
1 // Test for syntax support of various attribute permutations.
|
|
2
|
|
3 int
|
|
4 __attribute__((noreturn))
|
|
5 __attribute__((unused))
|
|
6 one(void); // OK
|
|
7
|
|
8 __attribute__((noreturn))
|
|
9 __attribute__((unused))
|
|
10 int
|
|
11 two(void); // OK
|
|
12
|
|
13 int
|
|
14 __attribute__((unused))
|
|
15 three (void)
|
|
16 __attribute__((noreturn)); // OK
|
|
17
|
|
18 __attribute__((unused))
|
|
19 int
|
|
20 four (void)
|
|
21 __attribute__((noreturn)); // OK
|
|
22
|
|
23 int
|
|
24 five(void)
|
|
25 __attribute__((noreturn))
|
|
26 __attribute__((unused)); // OK
|
|
27
|
|
28 __attribute__((noreturn))
|
|
29 int
|
|
30 __attribute__((unused)) // parse error before '__attribute__' in C++
|
|
31 six (void); // OK in C
|