brintos

brintos / llvm-project-archived public Read only

0
0
Text · 831 B · 42c6155 Raw
26 lines · cpp
1// RUN: %clang_cc1 -triple i686-windows-gnu  -fms-extensions -verify -std=c++03 %s2// RUN: %clang_cc1 -triple i686-windows-gnu  -fms-extensions -verify -std=c++11 %s3// RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -verify -std=c++03 -DERROR %s4// RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -verify -std=c++11 %s5 6#ifndef ERROR7// expected-no-diagnostics8#endif9 10struct NonCopyable {11private:12#ifdef ERROR13  // expected-note@+2{{declared private here}}14#endif15  NonCopyable();16};17 18#ifdef ERROR19// expected-error@+4{{field of type 'NonCopyable' has private default constructor}}20// expected-note@+3{{implicit default constructor for 'S' first required here}}21// expected-note@+2{{due to 'S' being dllexported; try compiling in C++11 mode}}22#endif23struct __declspec(dllexport) S {24  NonCopyable member;25};26