2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
|
2009-10-28 00:51:19 +08:00
|
|
|
|
2011-05-21 05:43:47 +08:00
|
|
|
struct A { //expected-note {{marked deleted here}} \
|
|
|
|
// expected-warning {{does not declare any constructor to initialize}}
|
|
|
|
const int i; // expected-note{{const member 'i' will never be initialized}}
|
2009-11-04 04:38:53 +08:00
|
|
|
virtual void f() { }
|
2009-10-28 00:51:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
int main () {
|
2011-05-21 05:43:47 +08:00
|
|
|
(void)A(); // expected-error {{call to deleted constructor}}
|
2009-10-28 00:51:19 +08:00
|
|
|
}
|