diff options
author | ed <ed@FreeBSD.org> | 2009-06-22 08:08:35 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-22 08:08:35 +0000 |
commit | 8927c19a5ed03bef55dac4b623688387bcc794dc (patch) | |
tree | b6403365e77095a79062d3379c9e6aea0df5f088 /test/Sema/warn-unused-parameters.c | |
parent | b8e7410b22fa573fb0078712439f343bc69208dd (diff) | |
download | FreeBSD-src-8927c19a5ed03bef55dac4b623688387bcc794dc.zip FreeBSD-src-8927c19a5ed03bef55dac4b623688387bcc794dc.tar.gz |
Update Clang sources to r73879.
Diffstat (limited to 'test/Sema/warn-unused-parameters.c')
-rw-r--r-- | test/Sema/warn-unused-parameters.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Sema/warn-unused-parameters.c b/test/Sema/warn-unused-parameters.c new file mode 100644 index 0000000..afb9516 --- /dev/null +++ b/test/Sema/warn-unused-parameters.c @@ -0,0 +1,13 @@ +// 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; }; +} |