Add LLVM runtime checks to build path
[clang/acc.git] / test / SemaCXX / constructor-recovery.cpp
blob50fdc9622e4c7ecde2869e0278f4f7c5f2515218
1 // RUN: clang-cc -fsyntax-only -verify %s
3 struct C { // expected-note {{candidate function}}
4 virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} \
5 expected-note {{candidate function}}
6 };
8 void f() {
9 C c; // expected-error {{call to constructor of 'c' is ambiguous}}