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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/constructor-recovery.cpp b/test/SemaCXX/constructor-recovery.cpp
index c1bb43628356..a0d8441012c5 100644
--- a/test/SemaCXX/constructor-recovery.cpp
+++ b/test/SemaCXX/constructor-recovery.cpp
@@ -1,9 +1,9 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-struct C {
+struct C { // expected-note 1+{{candidate}}
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
};
void f() {
- C c;
+ C c; // expected-error {{no matching constructor}}
}