xref: /llvm-project/clang/test/CodeGen/debug-info-alias-pointer.c (revision 585f62be1a438ca132aa443e556d102bc908a072)
1 // RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2 // REQUIRES: asserts
3 
4 struct S {
5   void *p;
6 };
7 
8 struct S s[] = {
9   { .p = (void *)0, },
10 };
11 
12 extern struct S t __attribute__((__alias__("s")));
13 
14 // CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, name: "t", scope: {{.*}}, entity: {{.*}}, file: {{.*}}, line: 12)
15