Douglas Gregor | e0762c9 | 2009-06-19 23:52:42 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -Wunused-parameter %s -Xclang -verify |
2 | |||||
3 | int f0(int x, | ||||
4 | int y, // expected-warning{{unused}} | ||||
5 | int z __attribute__((unused))) { | ||||
6 | return x; | ||||
7 | } | ||||
8 | |||||
9 | void f1() { | ||||
10 | (void)^(int x, | ||||
11 | int y, // expected-warning{{unused}} | ||||
12 | int z __attribute__((unused))) { return x; }; | ||||
13 | } |