[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / PR10243.cpp
blob19a8b04e84fa47ed76beab50ec500993a91a9a4a
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 struct S; // expected-note 4{{forward declaration of 'S'}}
5 struct T0 {
6 S s; // expected-error{{field has incomplete type 'S'}}
7 T0() = default;
8 };
10 struct T1 {
11 S s; // expected-error{{field has incomplete type 'S'}}
12 T1(const T1&) = default;
15 struct T2 {
16 S s; // expected-error{{field has incomplete type 'S'}}
17 T2& operator=(const T2&) = default;
20 struct T3 {
21 S s; // expected-error{{field has incomplete type 'S'}}
22 ~T3() = default;