[cfe-commits] r107395 - /cfe/trunk/test/CXX/except/except.spec/p14.cpp
Douglas Gregor
dgregor at apple.com
Thu Jul 1 07:21:35 PDT 2010
Author: dgregor
Date: Thu Jul 1 09:21:35 2010
New Revision: 107395
URL: http://llvm.org/viewvc/llvm-project?rev=107395&view=rev
Log:
Add Sema test case for exception-specifiers implicitly added to destructors.
Added:
cfe/trunk/test/CXX/except/except.spec/p14.cpp (with props)
Added: cfe/trunk/test/CXX/except/except.spec/p14.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/except/except.spec/p14.cpp?rev=107395&view=auto
==============================================================================
--- cfe/trunk/test/CXX/except/except.spec/p14.cpp (added)
+++ cfe/trunk/test/CXX/except/except.spec/p14.cpp Thu Jul 1 09:21:35 2010
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fexceptions -verify %s
+struct A { };
+struct B { };
+
+struct X0 {
+ virtual ~X0() throw(A); // expected-note{{overridden virtual function is here}}
+};
+struct X1 {
+ virtual ~X1() throw(B); // expected-note{{overridden virtual function is here}}
+};
+struct X2 : public X0, public X1 { }; // expected-error 2{{exception specification of overriding function is more lax than base version}}
+
Propchange: cfe/trunk/test/CXX/except/except.spec/p14.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/trunk/test/CXX/except/except.spec/p14.cpp
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: cfe/trunk/test/CXX/except/except.spec/p14.cpp
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the cfe-commits
mailing list