mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 21:45:46 -04:00

LLVM r236120 renamed debug info IR constructs to use a `DI` prefix, now that the `DIDescriptor` hierarchy has been gone for about a week. This commit was generated using the rename-md-di-nodes.sh upgrade script attached to PR23080, followed by running clang-format-diff.py on the `lib/` portion of the patch. llvm-svn: 236121
14 lines
477 B
C
14 lines
477 B
C
// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
|
|
|
|
// Ensure we emit the full definition of 'foo' even though only its declaration
|
|
// is needed, since C has no ODR to ensure that the definition will be the same
|
|
// in whatever TU actually uses/requires the definition of 'foo'.
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "foo",
|
|
// CHECK-NOT: DIFlagFwdDecl
|
|
// CHECK-SAME: ){{$}}
|
|
|
|
struct foo {
|
|
};
|
|
|
|
struct foo *f;
|