summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/exception-spec.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-10-11 09:03:14 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-10-11 09:03:14 +0000
commit4915e63d3baacaceaf5ed9e20066df8cbaf09a79 (patch)
tree4b9fd41751cff7fe4b5ea43775164e0e2e4e6505 /clang/test/SemaCXX/exception-spec.cpp
parentb8edf2a4dd9f1ba17c8aef17d3777ce65bd13380 (diff)
downloadbcm5719-llvm-4915e63d3baacaceaf5ed9e20066df8cbaf09a79.tar.gz
bcm5719-llvm-4915e63d3baacaceaf5ed9e20066df8cbaf09a79.zip
Test exception spec compatibility on return type and parameters.
Along the way, use RequireCompleteType when testing exception spec types. Separate all the ugly spec stuff into its own file. llvm-svn: 83764
Diffstat (limited to 'clang/test/SemaCXX/exception-spec.cpp')
-rw-r--r--clang/test/SemaCXX/exception-spec.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/exception-spec.cpp b/clang/test/SemaCXX/exception-spec.cpp
index cb4cbf4a709..cf7089cc7cc 100644
--- a/clang/test/SemaCXX/exception-spec.cpp
+++ b/clang/test/SemaCXX/exception-spec.cpp
@@ -156,9 +156,9 @@ void fnptrs()
// return types and arguments must match exactly, no inheritance allowed
void (*(*t7)())() throw(B1) = &s8; // valid
- void (*(*t8)())() throw(A) = &s8; // invalid
- void (*(*t9)())() throw(D) = &s8; // invalid
+ void (*(*t8)())() throw(A) = &s8; // expected-error {{return types differ}} expected-error {{incompatible type}}
+ void (*(*t9)())() throw(D) = &s8; // expected-error {{return types differ}} expected-error {{incompatible type}}
void (*t10)(void (*)() throw(B1)) = &s9; // valid expected-warning{{disambiguated}}
- void (*t11)(void (*)() throw(A)) = &s9; // invalid expected-warning{{disambiguated}}
- void (*t12)(void (*)() throw(D)) = &s9; // invalid expected-warning{{disambiguated}}
+ void (*t11)(void (*)() throw(A)) = &s9; // expected-error {{argument types differ}} expected-error {{incompatible type}} expected-warning{{disambiguated}}
+ void (*t12)(void (*)() throw(D)) = &s9; // expected-error {{argument types differ}} expected-error {{incompatible type}} expected-warning{{disambiguated}}
}
OpenPOWER on IntegriCloud