2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
|
2009-10-28 00:51:19 +08:00
|
|
|
|
2012-03-31 04:53:28 +08:00
|
|
|
struct A { // expected-warning {{does not declare any constructor to initialize}}
|
|
|
|
const int i; // expected-note{{const member 'i' will never be initialized}} expected-note {{implicitly deleted}}
|
2009-11-04 04:38:53 +08:00
|
|
|
virtual void f() { }
|
2009-10-28 00:51:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
int main () {
|
2012-02-16 03:33:52 +08:00
|
|
|
(void)A(); // expected-error {{call to implicitly-deleted default constructor}}
|
2009-10-28 00:51:19 +08:00
|
|
|
}
|