summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/exception-spec-no-exceptions.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-02 02:04:40 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-02 02:04:40 +0000
commit8feeb4966210bb7563cbbd07b9e322a386c0cb10 (patch)
treef2dc72170eb52f4d0673fc99c6a3f48a54f0471e /clang/test/SemaCXX/exception-spec-no-exceptions.cpp
parentc52264e71931352cc1e87130713b4a4bc6872a03 (diff)
downloadbcm5719-llvm-8feeb4966210bb7563cbbd07b9e322a386c0cb10.tar.gz
bcm5719-llvm-8feeb4966210bb7563cbbd07b9e322a386c0cb10.zip
Semantic checking for exception specifications should be triggered by
whether C++ exceptions are enabled, not exceptions in general. PR9358. llvm-svn: 126820
Diffstat (limited to 'clang/test/SemaCXX/exception-spec-no-exceptions.cpp')
-rw-r--r--clang/test/SemaCXX/exception-spec-no-exceptions.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/exception-spec-no-exceptions.cpp b/clang/test/SemaCXX/exception-spec-no-exceptions.cpp
index 1fe45b0cffc..2e180706d3b 100644
--- a/clang/test/SemaCXX/exception-spec-no-exceptions.cpp
+++ b/clang/test/SemaCXX/exception-spec-no-exceptions.cpp
@@ -1,7 +1,8 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions -fobjc-exceptions %s
-// Note: this is intentionally -fno-exceptions, not just accidentally
-// so because that's the current -cc1 default.
+// Note that we're specifically excluding -fcxx-exceptions in the command line above.
+
+// That this should work even with -fobjc-exceptions is PR9358
// PR7243: redeclarations
namespace test0 {
OpenPOWER on IntegriCloud