summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constructor-recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/constructor-recovery.cpp')
-rw-r--r--clang/test/SemaCXX/constructor-recovery.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/constructor-recovery.cpp b/clang/test/SemaCXX/constructor-recovery.cpp
index f2f9f43a10d..50fdc9622e4 100644
--- a/clang/test/SemaCXX/constructor-recovery.cpp
+++ b/clang/test/SemaCXX/constructor-recovery.cpp
@@ -1,9 +1,10 @@
// RUN: clang-cc -fsyntax-only -verify %s
-struct C {
- virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
+struct C { // expected-note {{candidate function}}
+ virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} \
+ expected-note {{candidate function}}
};
void f() {
- C c;
+ C c; // expected-error {{call to constructor of 'c' is ambiguous}}
}
OpenPOWER on IntegriCloud