diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-05-12 00:26:39 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-05-12 00:26:39 +0000 |
commit | 8d02531001c4e1a90809e0a086fb5d2c79028a04 (patch) | |
tree | 7561cc6ff587a560c3fde6e8174dae387c8c95bf /test/CXX | |
parent | a5301de60d7b02629aa14c8a94f8731efeb1d923 (diff) |
Merging r155424:
------------------------------------------------------------------------
r155424 | rsmith | 2012-04-23 22:06:35 -0700 (Mon, 23 Apr 2012) | 3 lines
PR12629: Cope with parenthesized function types when attaching a delayed
exception specification to a function.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_31@156679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/class/class.mem/p2.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CXX/class/class.mem/p2.cpp b/test/CXX/class/class.mem/p2.cpp index 0a823f4c1f..3e957df69d 100644 --- a/test/CXX/class/class.mem/p2.cpp +++ b/test/CXX/class/class.mem/p2.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s // C++11 [class.mem]p2: // A class is considered a completely-defined object type (or @@ -56,3 +56,12 @@ namespace test3 { template struct A2<int>; } + +namespace PR12629 { + struct S { + static int (f)() throw(); + static int ((((((g))))() throw(int))); + }; + static_assert(noexcept(S::f()), ""); + static_assert(!noexcept(S::g()), ""); +} |