android_mt6572_jiabo/external/clang/test/SemaCXX/constructor-recovery.cpp
2025-09-05 16:56:03 +08:00

9 lines
160 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
struct C {
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
};
void f() {
C c;
}