annotate clang/test/CodeGenCXX/debug-info-uuid.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 0572611fdcc8
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -emit-llvm -fms-extensions -triple=x86_64-pc-win32 -debug-info-kind=limited %s -o - -std=c++11 | FileCheck %s
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
3
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<GUID{12345678-1234-1234-1234-1234567890ab}>"
150
anatofuz
parents:
diff changeset
5 // CHECK-SAME: templateParams: [[TGI2ARGS:![0-9]*]]
anatofuz
parents:
diff changeset
6 // CHECK: [[TGI2ARGS]] = !{[[TGI2ARG1:![0-9]*]]}
anatofuz
parents:
diff changeset
7 // CHECK: [[TGI2ARG1]] = !DITemplateValueParameter(
anatofuz
parents:
diff changeset
8 // CHECK-SAME: type: [[CONST_GUID_REF:![0-9]*]]
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 // CHECK-SAME: value: %struct._GUID* @_GUID_12345678_1234_1234_1234_1234567890ab
150
anatofuz
parents:
diff changeset
10 // CHECK: [[CONST_GUID_REF]] = !DIDerivedType(tag: DW_TAG_reference_type,
anatofuz
parents:
diff changeset
11 // CHECK-SAME: baseType: [[CONST_GUID:![0-9]*]]
anatofuz
parents:
diff changeset
12 // CHECK: [[CONST_GUID]] = !DIDerivedType(tag: DW_TAG_const_type
anatofuz
parents:
diff changeset
13 // CHECK-SAME: baseType: [[GUID:![0-9]*]]
anatofuz
parents:
diff changeset
14 // CHECK: [[GUID]] = !DICompositeType(tag: DW_TAG_structure_type, name: "_GUID"
anatofuz
parents:
diff changeset
15
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&GUID{12345678-1234-1234-1234-1234567890ab}>"
150
anatofuz
parents:
diff changeset
17 // CHECK-SAME: templateParams: [[TGIARGS:![0-9]*]]
anatofuz
parents:
diff changeset
18 // CHECK: [[TGIARGS]] = !{[[TGIARG1:![0-9]*]]}
anatofuz
parents:
diff changeset
19 // CHECK: [[TGIARG1]] = !DITemplateValueParameter(
anatofuz
parents:
diff changeset
20 // CHECK-SAME: type: [[CONST_GUID_PTR:![0-9]*]]
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
21 // CHECK-SAME: value: %struct._GUID* @_GUID_12345678_1234_1234_1234_1234567890ab
150
anatofuz
parents:
diff changeset
22 // CHECK: [[CONST_GUID_PTR]] = !DIDerivedType(tag: DW_TAG_pointer_type
anatofuz
parents:
diff changeset
23 // CHECK-SAME: baseType: [[CONST_GUID:![0-9]*]]
anatofuz
parents:
diff changeset
24 // CHECK-SAME: size: 64
anatofuz
parents:
diff changeset
25
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
26 // CHECK-ITANIUM: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid2<GUID{12345678-1234-1234-1234-1234567890ab}>"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
27 // CHECK-ITANIUM-SAME: identifier: "_ZTS10tmpl_guid2IL_Z42_GUID_12345678_1234_1234_1234_1234567890abEE"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
28 // CHECK-ITANIUM: !DICompositeType(tag: DW_TAG_structure_type, name: "tmpl_guid<&GUID{12345678-1234-1234-1234-1234567890ab}>"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
29 // CHECK-ITANIUM-SAME: identifier: "_ZTS9tmpl_guidIXadL_Z42_GUID_12345678_1234_1234_1234_1234567890abEEE"
150
anatofuz
parents:
diff changeset
30
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
31 struct _GUID {
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
32 __UINT32_TYPE__ a; __UINT16_TYPE__ b, c; __UINT8_TYPE__ d[8];
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
33 };
150
anatofuz
parents:
diff changeset
34 template <const _GUID *>
anatofuz
parents:
diff changeset
35 struct tmpl_guid {
anatofuz
parents:
diff changeset
36 };
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid;
anatofuz
parents:
diff changeset
39 tmpl_guid<&__uuidof(uuid)> tgi;
anatofuz
parents:
diff changeset
40
anatofuz
parents:
diff changeset
41 template <const _GUID &>
anatofuz
parents:
diff changeset
42 struct tmpl_guid2 {};
anatofuz
parents:
diff changeset
43 tmpl_guid2<__uuidof(uuid)> tgi2;