14 lines · c
1// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s2 3// Ensure we emit the full definition of 'foo' even though only its declaration4// is needed, since C has no ODR to ensure that the definition will be the same5// in whatever TU actually uses/requires the definition of 'foo'.6// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "foo",7// CHECK-NOT: DIFlagFwdDecl8// CHECK-SAME: ){{$}}9 10struct foo {11};12 13struct foo *f;14