Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-pc-win32 -debug-info-kind=limited %s -o - -std=c++11 | FileCheck %s |
| 2 | // 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-ITANIUM |
Manman Ren | 404fbfe | 2013-08-28 18:31:02 +0000 | [diff] [blame] | 3 | |
Peter Collingbourne | eeb56ab | 2016-09-13 01:13:19 +0000 | [diff] [blame^] | 4 | // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<__uuidof(uuid)>" |
| 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: { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab |
| 10 | // 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_type |
| 13 | // CHECK-SAME: baseType: [[GUID:![0-9]*]] |
| 14 | // CHECK: [[GUID]] = !DICompositeType(tag: DW_TAG_structure_type, name: "_GUID" |
| 15 | |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 16 | // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&__uuidof(uuid)>" |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 17 | // CHECK-SAME: templateParams: [[TGIARGS:![0-9]*]] |
Duncan P. N. Exon Smith | b3a6669 | 2014-12-15 19:10:08 +0000 | [diff] [blame] | 18 | // CHECK: [[TGIARGS]] = !{[[TGIARG1:![0-9]*]]} |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 19 | // CHECK: [[TGIARG1]] = !DITemplateValueParameter( |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 20 | // CHECK-SAME: type: [[CONST_GUID_PTR:![0-9]*]] |
| 21 | // CHECK-SAME: value: { i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 22 | // CHECK: [[CONST_GUID_PTR]] = !DIDerivedType(tag: DW_TAG_pointer_type |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 23 | // CHECK-SAME: baseType: [[CONST_GUID:![0-9]*]] |
| 24 | // CHECK-SAME: size: 64 |
| 25 | // CHECK-SAME: align: 64 |
Manman Ren | 404fbfe | 2013-08-28 18:31:02 +0000 | [diff] [blame] | 26 | |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 27 | // CHECK-ITANIUM: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<__uuidof(uuid)>" |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 28 | // CHECK-ITANIUM-SAME: identifier: "_ZTS10tmpl_guid2IXu8__uuidoft4uuidEE" |
Peter Collingbourne | eeb56ab | 2016-09-13 01:13:19 +0000 | [diff] [blame^] | 29 | // CHECK-ITANIUM: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&__uuidof(uuid)>" |
| 30 | // CHECK-ITANIUM-SAME: identifier: "_ZTS9tmpl_guidIXadu8__uuidoft4uuidEE" |
Manman Ren | e0064d8 | 2013-08-29 23:19:58 +0000 | [diff] [blame] | 31 | |
Manman Ren | 404fbfe | 2013-08-28 18:31:02 +0000 | [diff] [blame] | 32 | struct _GUID; |
| 33 | template <const _GUID *> |
| 34 | struct tmpl_guid { |
| 35 | }; |
| 36 | |
| 37 | struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid; |
| 38 | tmpl_guid<&__uuidof(uuid)> tgi; |
David Majnemer | 922ad9f | 2014-10-24 19:49:04 +0000 | [diff] [blame] | 39 | |
| 40 | template <const _GUID &> |
| 41 | struct tmpl_guid2 {}; |
| 42 | tmpl_guid2<__uuidof(uuid)> tgi2; |