1*67e74705SXin Li // RUN: %clang_cc1 -triple i686-windows-gnu -fms-extensions -verify -std=c++03 %s 2*67e74705SXin Li // RUN: %clang_cc1 -triple i686-windows-gnu -fms-extensions -verify -std=c++11 %s 3*67e74705SXin Li // RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -verify -std=c++03 -DERROR %s 4*67e74705SXin Li // RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -verify -std=c++11 %s 5*67e74705SXin Li 6*67e74705SXin Li #ifndef ERROR 7*67e74705SXin Li // expected-no-diagnostics 8*67e74705SXin Li #endif 9*67e74705SXin Li 10*67e74705SXin Li struct NonCopyable { 11*67e74705SXin Li private: 12*67e74705SXin Li #ifdef ERROR 13*67e74705SXin Li // expected-note@+2{{declared private here}} 14*67e74705SXin Li #endif 15*67e74705SXin Li NonCopyable(); 16*67e74705SXin Li }; 17*67e74705SXin Li 18*67e74705SXin Li #ifdef ERROR 19*67e74705SXin Li // expected-error@+4{{field of type 'NonCopyable' has private default constructor}} 20*67e74705SXin Li // expected-note@+3{{implicit default constructor for 'S' first required here}} 21*67e74705SXin Li // expected-note@+2{{due to 'S' being dllexported; try compiling in C++11 mode}} 22*67e74705SXin Li #endif 23*67e74705SXin Li struct __declspec(dllexport) S { 24*67e74705SXin Li NonCopyable member; 25*67e74705SXin Li }; 26