diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-20 22:01:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-20 22:01:25 +0000 |
commit | 39c778b44348c530ef7487915f60e823d2fbc383 (patch) | |
tree | b393891a51975dc24e935416913b4ea3dbe59fd0 /clang/test/SemaCXX/deleted-function.cpp | |
parent | 1b6d10555ff70efcc44b8bf25d4755d88a15d48c (diff) | |
download | bcm5719-llvm-39c778b44348c530ef7487915f60e823d2fbc383.tar.gz bcm5719-llvm-39c778b44348c530ef7487915f60e823d2fbc383.zip |
Switch default-initialization of variables of class type (or array thereof) over to InitializationSequence. I could swear that this fixes a PR somewhere, but I couldn't figure out which one
llvm-svn: 91796
Diffstat (limited to 'clang/test/SemaCXX/deleted-function.cpp')
-rw-r--r-- | clang/test/SemaCXX/deleted-function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/deleted-function.cpp b/clang/test/SemaCXX/deleted-function.cpp index 572ef343309..d9df1bf5b05 100644 --- a/clang/test/SemaCXX/deleted-function.cpp +++ b/clang/test/SemaCXX/deleted-function.cpp @@ -16,7 +16,7 @@ void ov(int) {} // expected-note {{candidate function}} void ov(double) = delete; // expected-note {{candidate function has been explicitly deleted}} struct WithDel { - WithDel() = delete; // expected-note {{candidate function has been explicitly deleted}} + WithDel() = delete; // expected-note {{function has been explicitly marked deleted here}} void fn() = delete; // expected-note {{function has been explicitly marked deleted here}} operator int() = delete; // expected-note {{function has been explicitly marked deleted here}} void operator +(int) = delete; @@ -29,7 +29,7 @@ void test() { ov(1); ov(1.0); // expected-error {{call to deleted function 'ov'}} - WithDel dd; // expected-error {{call to deleted constructor of 'dd'}} + WithDel dd; // expected-error {{call to deleted constructor of 'struct WithDel'}} WithDel *d = 0; d->fn(); // expected-error {{attempt to use a deleted function}} int i = *d; // expected-error {{invokes a deleted function}} |