[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-ms-anonymous-tag.cpp
blob5e2cb2190f0d65917b04453b6fa18aea4cd0ca28
1 // RUN: %clang_cc1 -triple x86_64-pc-win32 -debug-info-kind=limited -gcodeview %s -emit-llvm -o - | FileCheck %s
3 typedef struct {
4 } test1;
6 test1 gv1;
8 struct {
9 } test2;
10 void *use_test2 = &test2;
12 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "<unnamed-type-test2>"
14 typedef struct {
15 } *test3;
16 test3 gv3;
17 void *use_test3 = &gv3;
19 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "<unnamed-type-test3>"
21 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "test1"