Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang -fblocks -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 | } |