summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/implicit-exception-spec.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-03-30 20:53:28 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-03-30 20:53:28 +0000
commit852265ff1c19c56a4f7e8324e4b133a6f33e8c8c (patch)
tree9b199c939c3199c8197510da7c5d0b413416bf17 /clang/test/SemaCXX/implicit-exception-spec.cpp
parent066aba5fe952a34d326f2d8f20c2da5590d2dd6a (diff)
downloadbcm5719-llvm-852265ff1c19c56a4f7e8324e4b133a6f33e8c8c.tar.gz
bcm5719-llvm-852265ff1c19c56a4f7e8324e4b133a6f33e8c8c.zip
PR10217: Provide diagnostics explaining why an implicitly-deleted special
member function is deleted. llvm-svn: 153773
Diffstat (limited to 'clang/test/SemaCXX/implicit-exception-spec.cpp')
-rw-r--r--clang/test/SemaCXX/implicit-exception-spec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/implicit-exception-spec.cpp b/clang/test/SemaCXX/implicit-exception-spec.cpp
index f8ee76727e5..786e8f4a148 100644
--- a/clang/test/SemaCXX/implicit-exception-spec.cpp
+++ b/clang/test/SemaCXX/implicit-exception-spec.cpp
@@ -54,9 +54,9 @@ namespace ExceptionSpecification {
// The same problem arises in delayed parsing of default arguments,
// which clang does not yet support.
namespace DefaultArgument {
- struct Default { // expected-note {{defined here}}
+ struct Default {
struct T {
T(int = ExceptionIf<noexcept(Default())::f()); // expected-error {{call to implicitly-deleted default constructor}}
- } t;
+ } t; // expected-note {{has no default constructor}}
};
}
OpenPOWER on IntegriCloud