diff options
author | John McCall <rjmccall@apple.com> | 2011-03-02 02:04:40 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-03-02 02:04:40 +0000 |
commit | 018591f524ca4f3a1e657d0d0a66eadf9dbd55f6 (patch) | |
tree | 95fbe9159daff6b6eeba0960e6a9ae13bc9bc926 /test/SemaCXX/exception-spec-no-exceptions.cpp | |
parent | 406f98f6a5a7bde5707085af8d66204e7e76af45 (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-no-exceptions.cpp')
-rw-r--r-- | test/SemaCXX/exception-spec-no-exceptions.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/SemaCXX/exception-spec-no-exceptions.cpp b/test/SemaCXX/exception-spec-no-exceptions.cpp index 1fe45b0cff..2e180706d3 100644 --- a/test/SemaCXX/exception-spec-no-exceptions.cpp +++ b/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 { |