diff options
Diffstat (limited to 'test/SemaObjC/warn-unused-exception-param.m')
-rw-r--r-- | test/SemaObjC/warn-unused-exception-param.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjC/warn-unused-exception-param.m b/test/SemaObjC/warn-unused-exception-param.m new file mode 100644 index 0000000..f649f8c --- /dev/null +++ b/test/SemaObjC/warn-unused-exception-param.m @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wunused-exception-parameter %s +void f0() { + @try {} @catch(id a) {} // expected-warning{{unused exception parameter 'a'}} +} |