summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-06-21 01:28:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-06-21 01:28:03 +0000
commit319f41382aecc1a81b720f5aa40b16a6bd1124a6 (patch)
tree58ff4a73d3957f72ff3b72854accf6ada3d16f13
parent7ea06e5a9fb5b3851f3790c8b06d40acb1b15fec (diff)
downloadbcm5719-llvm-319f41382aecc1a81b720f5aa40b16a6bd1124a6.tar.gz
bcm5719-llvm-319f41382aecc1a81b720f5aa40b16a6bd1124a6.zip
Add missing test.
llvm-svn: 184515
-rw-r--r--clang/test/SemaObjCXX/exceptions.mm11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/exceptions.mm b/clang/test/SemaObjCXX/exceptions.mm
new file mode 100644
index 00000000000..37e6def35b0
--- /dev/null
+++ b/clang/test/SemaObjCXX/exceptions.mm
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -triple x86_64-apple-darwin11 -fsyntax-only -verify %s
+
+@interface NSException @end
+
+namespace test0 {
+ void test() {
+ try {
+ } catch (NSException e) { // expected-error {{can't catch an Objective-C object by value}}
+ }
+ }
+}
OpenPOWER on IntegriCloud