clang/test/DebugInfo/Generic/alias-pointer.c
raw| 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) |