aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/constructor-recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/constructor-recovery.cpp')
-rw-r--r--test/SemaCXX/constructor-recovery.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/SemaCXX/constructor-recovery.cpp b/test/SemaCXX/constructor-recovery.cpp
index 50fdc9622e..f2f9f43a10 100644
--- a/test/SemaCXX/constructor-recovery.cpp
+++ b/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;
}