brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 09279f2 Raw
44 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-pc-win32 -debug-info-kind=limited %s -o - -std=c++11 | FileCheck %s2// RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-unknown-unknown -debug-info-kind=limited %s -o - -std=c++11 2>&1 | FileCheck %s --check-prefix=CHECK-ITANIUM3 4// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<GUID{12345678-1234-1234-1234-1234567890ab}>"5// CHECK-SAME:             templateParams: [[TGI2ARGS:![0-9]*]]6// CHECK: [[TGI2ARGS]] = !{[[TGI2ARG1:![0-9]*]]}7// CHECK: [[TGI2ARG1]] = !DITemplateValueParameter(8// CHECK-SAME:                                     type: [[CONST_GUID_REF:![0-9]*]]9// CHECK-SAME:                                     value: ptr @_GUID_12345678_1234_1234_1234_1234567890ab10// CHECK: [[CONST_GUID_REF]] = !DIDerivedType(tag: DW_TAG_reference_type,11// CHECK-SAME:                                baseType: [[CONST_GUID:![0-9]*]]12// CHECK: [[CONST_GUID]] = !DIDerivedType(tag: DW_TAG_const_type13// CHECK-SAME:                            baseType: [[GUID:![0-9]*]]14// CHECK: [[GUID]] = !DICompositeType(tag: DW_TAG_structure_type, name: "_GUID"15 16// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&GUID{12345678-1234-1234-1234-1234567890ab}>"17// CHECK-SAME:             templateParams: [[TGIARGS:![0-9]*]]18// CHECK: [[TGIARGS]] = !{[[TGIARG1:![0-9]*]]}19// CHECK: [[TGIARG1]] = !DITemplateValueParameter(20// CHECK-SAME:                                    type: [[CONST_GUID_PTR:![0-9]*]]21// CHECK-SAME:                                    value: ptr @_GUID_12345678_1234_1234_1234_1234567890ab22// CHECK: [[CONST_GUID_PTR]] = !DIDerivedType(tag: DW_TAG_pointer_type23// CHECK-SAME:                                baseType: [[CONST_GUID:![0-9]*]]24// CHECK-SAME:                                size: 6425 26// CHECK-ITANIUM: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<GUID{12345678-1234-1234-1234-1234567890ab}>"27// CHECK-ITANIUM-SAME:             identifier: "_ZTS10tmpl_guid2IL_Z42_GUID_12345678_1234_1234_1234_1234567890abEE"28// CHECK-ITANIUM: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&GUID{12345678-1234-1234-1234-1234567890ab}>"29// CHECK-ITANIUM-SAME:             identifier: "_ZTS9tmpl_guidIXadL_Z42_GUID_12345678_1234_1234_1234_1234567890abEEE"30 31struct _GUID {32  __UINT32_TYPE__ a; __UINT16_TYPE__ b, c; __UINT8_TYPE__ d[8];33};34template <const _GUID *>35struct tmpl_guid {36};37 38struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid;39tmpl_guid<&__uuidof(uuid)> tgi;40 41template <const _GUID &>42struct tmpl_guid2 {};43tmpl_guid2<__uuidof(uuid)> tgi2;44