aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/debug-info-alias-pointer.c
blob: 507a101fe0dc563da18b3934cc1523250e5c8b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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)