diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-30 20:53:28 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-30 20:53:28 +0000 |
| commit | 852265ff1c19c56a4f7e8324e4b133a6f33e8c8c (patch) | |
| tree | 9b199c939c3199c8197510da7c5d0b413416bf17 /clang/test/SemaCXX/cxx98-compat.cpp | |
| parent | 066aba5fe952a34d326f2d8f20c2da5590d2dd6a (diff) | |
| download | bcm5719-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/cxx98-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx98-compat.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp index fd70875fc81..70cac8d54ec 100644 --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -214,10 +214,8 @@ namespace CopyCtorIssues { Ambiguous(const Ambiguous &, int = 0); // expected-note {{candidate}} Ambiguous(const Ambiguous &, double = 0); // expected-note {{candidate}} }; - struct Deleted { // expected-note {{here}} - // Copy ctor implicitly defined as deleted because Private's copy ctor is - // inaccessible. - Private p; + struct Deleted { + Private p; // expected-note {{implicitly deleted}} }; const Private &a = Private(); // expected-warning {{copying variable of type 'CopyCtorIssues::Private' when binding a reference to a temporary would invoke an inaccessible constructor in C++98}} |

