diff options
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 50fdc9622e4..f2f9f43a10d 100644 --- a/clang/test/SemaCXX/constructor-recovery.cpp +++ b/clang/test/SemaCXX/constructor-recovery.cpp @@ -1,10 +1,9 @@ // RUN: clang-cc -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; } |