// RUN: %clang_cc1 -fblocks -fsyntax-only -Wunused-but-set-parameter -verify %s
intf0(intx,inty,// expected-warning{{parameter 'y' set but not used}}
int z __attribute__((unused))){
y =0;return x;}voidf1(void){(void)^(int x,int y,// expected-warning{{parameter 'y' set but not used}}
int z __attribute__((unused))){
y =0;return x;};}structS{int i;};// In C++, don't warn for a struct (following gcc).
voidf3(struct S s){struct S t;
s = t;}// Also don't warn for a reference.
voidf4(int&x){
x =0;}// Make sure this doesn't warn.
structA{int i;A(intj):i(j){}};