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/constructor-recovery.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/constructor-recovery.cpp')
| -rw-r--r-- | clang/test/SemaCXX/constructor-recovery.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/constructor-recovery.cpp b/clang/test/SemaCXX/constructor-recovery.cpp index 8e006203980..c1bb4362835 100644 --- a/clang/test/SemaCXX/constructor-recovery.cpp +++ b/clang/test/SemaCXX/constructor-recovery.cpp @@ -1,10 +1,9 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -struct C { // expected-note {{candidate function}} - virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} \ - expected-note {{candidate function}} +struct C { + virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} }; void f() { - C c; // expected-error {{call to constructor of 'c' is ambiguous}} + C c; } |

