Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x |
Fariborz Jahanian | 6c813e1 | 2009-10-27 16:51:19 +0000 | [diff] [blame] | 2 | |
Sean Hunt | e340682 | 2011-05-20 21:43:47 +0000 | [diff] [blame] | 3 | struct A { //expected-note {{marked deleted here}} \ |
| 4 | // expected-warning {{does not declare any constructor to initialize}} |
| 5 | const int i; // expected-note{{const member 'i' will never be initialized}} |
Fariborz Jahanian | 6f26920 | 2009-11-03 20:38:53 +0000 | [diff] [blame] | 6 | virtual void f() { } |
Fariborz Jahanian | 6c813e1 | 2009-10-27 16:51:19 +0000 | [diff] [blame] | 7 | }; |
| 8 | |
| 9 | int main () { |
Sean Hunt | e340682 | 2011-05-20 21:43:47 +0000 | [diff] [blame] | 10 | (void)A(); // expected-error {{call to deleted constructor}} |
Fariborz Jahanian | 6c813e1 | 2009-10-27 16:51:19 +0000 | [diff] [blame] | 11 | } |