1 // RUN: %clang_cc1 -flto -triple x86_64-unknown-linux -std=c++11 -fms-extensions -fvisibility=hidden -fwhole-program-vtables -emit-llvm -o - %s | FileCheck --check-prefix=ITANIUM %s
2 // RUN: %clang_cc1 -flto -triple x86_64-pc-windows-msvc -std=c++11 -fms-extensions -fwhole-program-vtables -emit-llvm -o - %s | FileCheck --check-prefix=MS --check-prefix=MS-STD %s
3 // RUN: %clang_cc1 -flto -triple x86_64-pc-windows-msvc -std=c++11 -fms-extensions -fwhole-program-vtables -flto-visibility-public-std -emit-llvm -o - %s | FileCheck --check-prefix=MS --check-prefix=MS-NOSTD %s
9 struct __attribute__((visibility("default"))) C2
{
13 struct __declspec(dllexport
) C3
{
17 struct __declspec(dllimport
) C4
{
21 struct [[clang::lto_visibility_public
]] C5
{
25 struct __declspec(uuid("00000000-0000-0000-0000-000000000000")) C6
{
68 void f(C1
*c1
, C2
*c2
, C3
*c3
, C4
*c4
, C5
*c5
, C6
*c6
, std::C7
*c7
,
69 std::C7::C8
*c8
, stdext::C9
*c9
, other::C10
*c10
) {
70 // ITANIUM: type.test{{.*}}!"_ZTS2C1"
71 // MS: type.test{{.*}}!"?AUC1@@"
73 // ITANIUM: type.test{{.*}}!"_ZTS2C2"
74 // MS: type.test{{.*}}!"?AUC2@@"
76 // ITANIUM: type.test{{.*}}!"_ZTS2C3"
77 // MS-NOT: type.test{{.*}}!"?AUC3@@"
79 // ITANIUM: type.test{{.*}}!"_ZTS2C4"
80 // MS-NOT: type.test{{.*}}!"?AUC4@@"
82 // ITANIUM-NOT: type.test{{.*}}!"_ZTS2C5"
83 // MS-NOT: type.test{{.*}}!"?AUC5@@"
85 // ITANIUM-NOT: type.test{{.*}}!"_ZTS2C6"
86 // MS-NOT: type.test{{.*}}!"?AUC6@@"
88 // ITANIUM: type.test{{.*}}!"_ZTSSt2C7"
89 // MS-STD: type.test{{.*}}!"?AUC7@std@@"
90 // MS-NOSTD-NOT: type.test{{.*}}!"?AUC7@std@@"
92 // ITANIUM: type.test{{.*}}!"_ZTSNSt2C72C8E"
93 // MS-STD: type.test{{.*}}!"?AUC8@C7@std@@"
94 // MS-NOSTD-NOT: type.test{{.*}}!"?AUC8@C7@std@@"
96 // ITANIUM: type.test{{.*}}!"_ZTSN6stdext2C9E"
97 // MS-STD: type.test{{.*}}!"?AUC9@stdext@@"
98 // MS-NOSTD-NOT: type.test{{.*}}!"?AUC9@stdext@@"
100 // ITANIUM: type.test{{.*}}!"_ZTSN5other3C10E"
101 // MS: type.test{{.*}}!"?AUC10@other@@"
103 // ITANIUM: type.test{{.*}}!{{[0-9]}}
104 // MS: type.test{{.*}}!{{[0-9]}}