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