llvm-project/clang/test/Sema/warn-unused-parameters.c

14 lines
323 B
C
Raw Normal View History

2009-06-20 08:29:46 +08:00
// RUN: clang -fblocks -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; };
2009-06-20 08:29:46 +08:00
}