2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-pc-win32 -g %s -o - -std=c++11 | FileCheck %s
|
2014-09-25 00:28:40 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-unknown-unknown -g %s -o - -std=c++11 2>&1 | FileCheck %s --check-prefix=CHECK-ITANIUM
|
2013-08-29 02:31:02 +08:00
|
|
|
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: !MDCompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&__uuidof(uuid)>"
|
|
|
|
// CHECK-SAME: templateParams: [[TGIARGS:![0-9]*]]
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: [[TGIARGS]] = !{[[TGIARG1:![0-9]*]]}
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: [[TGIARG1]] = !MDTemplateValueParameter(
|
|
|
|
// CHECK-SAME: type: [[CONST_GUID_PTR:![0-9]*]]
|
|
|
|
// CHECK-SAME: value: { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab
|
|
|
|
// CHECK: [[CONST_GUID_PTR]] = !MDDerivedType(tag: DW_TAG_pointer_type
|
|
|
|
// CHECK-SAME: baseType: [[CONST_GUID:![0-9]*]]
|
|
|
|
// CHECK-SAME: size: 64
|
|
|
|
// CHECK-SAME: align: 64
|
|
|
|
// CHECK: [[CONST_GUID]] = !MDDerivedType(tag: DW_TAG_const_type
|
|
|
|
// CHECK-SAME: baseType: [[GUID:![0-9]*]]
|
|
|
|
// CHECK: [[GUID]] = !MDCompositeType(tag: DW_TAG_structure_type, name: "_GUID"
|
2013-08-29 02:31:02 +08:00
|
|
|
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: !MDCompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<__uuidof(uuid)>"
|
|
|
|
// CHECK-SAME: templateParams: [[TGI2ARGS:![0-9]*]]
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: [[TGI2ARGS]] = !{[[TGI2ARG1:![0-9]*]]}
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: [[TGI2ARG1]] = !MDTemplateValueParameter(
|
|
|
|
// CHECK-SAME: type: [[CONST_GUID_REF:![0-9]*]]
|
|
|
|
// CHECK-SAME: value: { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab
|
|
|
|
// CHECK: [[CONST_GUID_REF]] = !MDDerivedType(tag: DW_TAG_reference_type,
|
|
|
|
// CHECK-SAME: baseType: [[CONST_GUID:![0-9]*]]
|
2014-10-25 03:49:04 +08:00
|
|
|
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-ITANIUM: !MDCompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&__uuidof(uuid)>"
|
|
|
|
// CHECK-ITANIUM-SAME: identifier: "_ZTS9tmpl_guidIXadu8__uuidoft4uuidEE"
|
|
|
|
// CHECK-ITANIUM: !MDCompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<__uuidof(uuid)>"
|
|
|
|
// CHECK-ITANIUM-SAME: identifier: "_ZTS10tmpl_guid2IXu8__uuidoft4uuidEE"
|
2013-08-30 07:19:58 +08:00
|
|
|
|
2013-08-29 02:31:02 +08:00
|
|
|
struct _GUID;
|
|
|
|
template <const _GUID *>
|
|
|
|
struct tmpl_guid {
|
|
|
|
};
|
|
|
|
|
|
|
|
struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid;
|
|
|
|
tmpl_guid<&__uuidof(uuid)> tgi;
|
2014-10-25 03:49:04 +08:00
|
|
|
|
|
|
|
template <const _GUID &>
|
|
|
|
struct tmpl_guid2 {};
|
|
|
|
tmpl_guid2<__uuidof(uuid)> tgi2;
|