summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/destructor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-01 02:33:15 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-01 02:33:15 +0000
commitc6e4c68371255df29776af29ff781633059549e9 (patch)
treea106e6bef9e5324c99a9e04e033bcd50f7b33439 /clang/test/SemaCXX/destructor.cpp
parent7937d5606d85d79fe6cbccef739701d2769fc520 (diff)
downloadbcm5719-llvm-c6e4c68371255df29776af29ff781633059549e9.tar.gz
bcm5719-llvm-c6e4c68371255df29776af29ff781633059549e9.zip
When building the type of a destructor, make sure to keep the
exception specification. Fixes PR7526. llvm-svn: 107374
Diffstat (limited to 'clang/test/SemaCXX/destructor.cpp')
-rw-r--r--clang/test/SemaCXX/destructor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/destructor.cpp b/clang/test/SemaCXX/destructor.cpp
index ae3dc86e97f..1d36ceab236 100644
--- a/clang/test/SemaCXX/destructor.cpp
+++ b/clang/test/SemaCXX/destructor.cpp
@@ -19,7 +19,9 @@ struct D {
// expected-error{{type qualifier is not allowed on this function}} \
// expected-error{{destructor cannot be declared 'static'}} \
// expected-error{{destructor cannot have any parameters}} \
- // expected-error{{destructor cannot be variadic}}
+ // expected-error{{destructor cannot be variadic}} \
+ // expected-error{{destructor cannot have a return type}} \
+ // expected-error{{'const' qualifier is not allowed on a destructor}}
};
struct D2 {
OpenPOWER on IntegriCloud