summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-unused.c
blob: dbb5e630d7a10316ad7e51f80a99ebe9a6e92a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -verify -fsyntax-only %s

static void (*fp0)(void) __attribute__((unused));

static void __attribute__((unused)) f0(void);

// On K&R
int f1() __attribute__((unused));

int g0 __attribute__((unused));

int f2() __attribute__((unused(1, 2))); // expected-error {{attribute requires 0 argument(s)}}
OpenPOWER on IntegriCloud