1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-pc-win32 -g %s -o - -std=c++11 | FileCheck %s 2*0a6a1f1dSLionel Sambuc // 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 3f4a2713aSLionel Sambuc 4*0a6a1f1dSLionel Sambuc // CHECK: [[TGIARGS:![0-9]*]], null} ; [ DW_TAG_structure_type ] [tmpl_guid<&__uuidof(uuid)>] 5*0a6a1f1dSLionel Sambuc // CHECK: [[TGIARGS]] = !{[[TGIARG1:![0-9]*]]} 6*0a6a1f1dSLionel Sambuc // CHECK: [[TGIARG1]] = !{!"0x30\00\00{{.*}}", {{[^,]+}}, [[CONST_GUID_PTR:![0-9]*]], { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab, {{.*}} ; [ DW_TAG_template_value_parameter ] 7*0a6a1f1dSLionel Sambuc // CHECK: [[CONST_GUID_PTR]] = {{.*}}, [[CONST_GUID:![0-9]*]]} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ] 8*0a6a1f1dSLionel Sambuc // CHECK: [[CONST_GUID]] = {{.*}}, [[GUID:![0-9]*]]} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from _GUID] 9f4a2713aSLionel Sambuc // CHECK: [[GUID]] = {{.*}} ; [ DW_TAG_structure_type ] [_GUID] 10f4a2713aSLionel Sambuc 11*0a6a1f1dSLionel Sambuc // CHECK: [[TGI2ARGS:![0-9]*]], null} ; [ DW_TAG_structure_type ] [tmpl_guid2<__uuidof(uuid)>] 12*0a6a1f1dSLionel Sambuc // CHECK: [[TGI2ARGS]] = !{[[TGI2ARG1:![0-9]*]]} 13*0a6a1f1dSLionel Sambuc // CHECK: [[TGI2ARG1]] = !{!"0x30\00\00{{.*}}", {{[^,]+}}, [[CONST_GUID_REF:![0-9]*]], { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab, {{.*}} ; [ DW_TAG_template_value_parameter ] 14*0a6a1f1dSLionel Sambuc // CHECK: [[CONST_GUID_REF]] = {{.*}}, [[CONST_GUID:![0-9]*]]} ; [ DW_TAG_reference_type ] [line 0, size 0, align 0, offset 0] [from ] 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc // CHECK-ITANIUM: !"_ZTS9tmpl_guidIXadu8__uuidoft4uuidEE"} ; [ DW_TAG_structure_type ] [tmpl_guid<&__uuidof(uuid)>] 17*0a6a1f1dSLionel Sambuc // CHECK-ITANIUM: !"_ZTS10tmpl_guid2IXu8__uuidoft4uuidEE"} ; [ DW_TAG_structure_type ] [tmpl_guid2<__uuidof(uuid)>] 18f4a2713aSLionel Sambuc 19f4a2713aSLionel Sambuc struct _GUID; 20f4a2713aSLionel Sambuc template <const _GUID *> 21f4a2713aSLionel Sambuc struct tmpl_guid { 22f4a2713aSLionel Sambuc }; 23f4a2713aSLionel Sambuc 24f4a2713aSLionel Sambuc struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid; 25f4a2713aSLionel Sambuc tmpl_guid<&__uuidof(uuid)> tgi; 26*0a6a1f1dSLionel Sambuc 27*0a6a1f1dSLionel Sambuc template <const _GUID &> 28*0a6a1f1dSLionel Sambuc struct tmpl_guid2 {}; 29*0a6a1f1dSLionel Sambuc tmpl_guid2<__uuidof(uuid)> tgi2; 30