1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 struct S
; // expected-note 4{{forward declaration of 'S'}}
6 S s
; // expected-error{{field has incomplete type 'S'}}
11 S s
; // expected-error{{field has incomplete type 'S'}}
12 T1(const T1
&) = default;
16 S s
; // expected-error{{field has incomplete type 'S'}}
17 T2
& operator=(const T2
&) = default;
21 S s
; // expected-error{{field has incomplete type 'S'}}