aboutsummaryrefslogtreecommitdiff
path: root/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
commit018591f524ca4f3a1e657d0d0a66eadf9dbd55f6 (patch)
tree95fbe9159daff6b6eeba0960e6a9ae13bc9bc926 /test/SemaCXX/exception-spec.cpp
parent406f98f6a5a7bde5707085af8d66204e7e76af45 (diff)
Semantic checking for exception specifications should be triggered by
whether C++ exceptions are enabled, not exceptions in general. PR9358. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/exception-spec.cpp')
-rw-r--r--test/SemaCXX/exception-spec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/exception-spec.cpp b/test/SemaCXX/exception-spec.cpp
index b4bc78aa9a..80fd2c3d88 100644
--- a/test/SemaCXX/exception-spec.cpp
+++ b/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