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