diff options
Diffstat (limited to 'test/Sema/warn-unused-variables-werror.c')
-rw-r--r-- | test/Sema/warn-unused-variables-werror.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/warn-unused-variables-werror.c b/test/Sema/warn-unused-variables-werror.c new file mode 100644 index 0000000000..ceaff1ba69 --- /dev/null +++ b/test/Sema/warn-unused-variables-werror.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Werror -verify %s + +void f() { + int i; // expected-error{{unused}} + int j; // expected-error{{unused}} +} |