blob: 9a585104980310b23e2a8cfadf2ba36d0566203d [file] [log] [blame]
Abramo Bagnaracdb80762011-07-11 08:52:40 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
2
3struct S; // expected-note 4{{forward declaration of 'S'}}
4
5struct T0 {
6 S s; // expected-error{{field has incomplete type 'S'}}
7 T0() = default;
8};
9
10struct T1 {
11 S s; // expected-error{{field has incomplete type 'S'}}
12 T1(T1&) = default;
13};
14
15struct T2 {
16 S s; // expected-error{{field has incomplete type 'S'}}
17 T2& operator=(T2&) = default;
18};
19
20struct T3 {
21 S s; // expected-error{{field has incomplete type 'S'}}
22 ~T3() = default;
23};