summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/exception-spec.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.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.cpp')
-rw-r--r--clang/test/SemaCXX/exception-spec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/exception-spec.cpp b/clang/test/SemaCXX/exception-spec.cpp
index b4bc78aa9a6..80fd2c3d883 100644
--- a/clang/test/SemaCXX/exception-spec.cpp
+++ b/clang/test/SemaCXX/exception-spec.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions -fcxx-exceptions %s
// Straight from the standard:
// Plain function with spec
OpenPOWER on IntegriCloud