Clang Project

clang_source_code/test/CodeGenCXX/debug-info-ms-anonymous-tag.cpp
1// RUN: %clang_cc1 -triple x86_64-pc-win32 -debug-info-kind=limited -gcodeview %s -emit-llvm -o - | FileCheck %s
2
3typedef struct {
4} test1;
5
6test1 gv1;
7
8struct {
9} test2;
10void *use_test2 = &test2;
11
12// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "<unnamed-type-test2>"
13
14typedef struct {
15} *test3;
16test3 gv3;
17void *use_test3 = &gv3;
18
19// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "<unnamed-type-test3>"
20
21// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "test1"
22