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