blob: c6458cf9712bcb687ced717e7b8d1c315fb18798 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang -fblocks -fsyntax-only -Wunused-parameter %s -Xclang -verify
2
3int f0(int x,
4 int y, // expected-warning{{unused}}
5 int z __attribute__((unused))) {
6 return x;
7}
8
9void f1() {
10 (void)^(int x,
11 int y, // expected-warning{{unused}}
12 int z __attribute__((unused))) { return x; };
13}