diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/CXX/except/except.spec/p5-delayed.cpp | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) |
Notes
Diffstat (limited to 'test/CXX/except/except.spec/p5-delayed.cpp')
-rw-r--r-- | test/CXX/except/except.spec/p5-delayed.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CXX/except/except.spec/p5-delayed.cpp b/test/CXX/except/except.spec/p5-delayed.cpp new file mode 100644 index 000000000000..99c0e2de31a9 --- /dev/null +++ b/test/CXX/except/except.spec/p5-delayed.cpp @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -std=c++11 -verify %s -fexceptions -fcxx-exceptions + +struct A { struct X { virtual ~X() throw(Y); }; struct Y : X {}; }; +struct B { struct X { virtual void f() throw(Y); }; struct Y : X { void f() throw(Y); }; }; +struct C { struct X { virtual void f() throw(Y); }; struct Y : X { void f() throw(); }; }; +struct D { struct X { virtual void f() throw(Y); }; struct Y : X { void f() noexcept; }; }; +struct E { struct Y; struct X { virtual Y &operator=(const Y&) throw(Y); }; struct Y : X {}; }; +struct F { + struct X { + virtual void f() throw(Y); // expected-note {{here}} + }; + struct Y : X { + void f() throw(int); // expected-error {{more lax}} + }; +}; |