opnsense-src/test/SemaCXX/constructor-recovery.cpp

10 lines
160 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-06-02 13:58:47 -04:00
2010-01-01 05:34:51 -05:00
struct C {
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
2009-06-02 13:58:47 -04:00
};
void f() {
2010-01-01 05:34:51 -05:00
C c;
2009-06-02 13:58:47 -04:00
}