Daniel Dunbar | d3f2c10 | 2008-10-19 02:04:16 +0000 | [diff] [blame] | 1 | // RUN: clang -verify -fsyntax-only %s |
2 | |||||
3 | static void (*fp0)(void) __attribute__((unused)); | ||||
4 | |||||
5 | static void __attribute__((unused)) f0(void); | ||||
6 | |||||
7 | // On K&R | ||||
8 | int f1() __attribute__((unused)); | ||||
9 | |||||
10 | int g0 __attribute__((unused)); | ||||
11 | |||||
12 | int f2() __attribute__((unused(1, 2))); // expected-error {{attribute requires 0 argument(s)}} |