forked from OSchip/llvm-project
13 lines
313 B
C
13 lines
313 B
C
|
// RUN: clang -fsyntax-only -Wunused-parameter %s -Xclang -verify
|
||
|
|
||
|
int f0(int x,
|
||
|
int y, // expected-warning{{unused}}
|
||
|
int z __attribute__((unused))) {
|
||
|
return x;
|
||
|
}
|
||
|
|
||
|
void f1() {
|
||
|
(void)^(int x,
|
||
|
int y, // expected-warning{{unused}}
|
||
|
int z __attribute__((unused))) { return x; };
|
||
|
}
|