mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 07:31:28 +00:00
674cf26892
Note: __declspec is also temporarily enabled when compiling for a CUDA target because there are implementation details relying on __declspec(property) support currently. When those details change, __declspec should be disabled for CUDA targets. llvm-svn: 238238
26 lines
831 B
C++
26 lines
831 B
C++
// RUN: %clang_cc1 -triple i686-windows-gnu -fms-extensions -verify -std=c++03 %s
|
|
// RUN: %clang_cc1 -triple i686-windows-gnu -fms-extensions -verify -std=c++11 %s
|
|
// RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -verify -std=c++03 -DERROR %s
|
|
// RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -verify -std=c++11 %s
|
|
|
|
#ifndef ERROR
|
|
// expected-no-diagnostics
|
|
#endif
|
|
|
|
struct NonCopyable {
|
|
private:
|
|
#ifdef ERROR
|
|
// expected-note@+2{{declared private here}}
|
|
#endif
|
|
NonCopyable();
|
|
};
|
|
|
|
#ifdef ERROR
|
|
// expected-error@+4{{field of type 'NonCopyable' has private default constructor}}
|
|
// expected-note@+3{{implicit default constructor for 'S' first required here}}
|
|
// expected-note@+2{{due to 'S' being dllexported; try compiling in C++11 mode}}
|
|
#endif
|
|
struct __declspec(dllexport) S {
|
|
NonCopyable member;
|
|
};
|