// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
structS;// expected-note 4{{forward declaration of 'S'}}
structT0{S s;// expected-error{{field has incomplete type 'S'}}
T0()=default;};structT1{S s;// expected-error{{field has incomplete type 'S'}}
T1(const T1&)=default;};structT2{S s;// expected-error{{field has incomplete type 'S'}}
T2&operator=(const T2&)=default;};structT3{S s;// expected-error{{field has incomplete type 'S'}}
~T3()=default;};