llvm-project/clang/test/CodeGen/debug-info-alias-pointer.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
386 B
C
Raw Normal View History

// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// REQUIRES: asserts
struct S {
void *p;
};
struct S s[] = {
{ .p = (void *)0, },
};
extern struct S t __attribute__((__alias__("s")));
// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, name: "t", scope: {{.*}}, entity: {{.*}}, file: {{.*}}, line: 12)