blob: 72f9fb7486c2ebbe6b0cb0004cdcf979f5d4d137 [file] [log] [blame]
David Blaikieac00b792013-08-01 20:57:40 +00001// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
2
3// Ensure we emit the full definition of 'foo' even though only its declaration
4// is needed, since C has no ODR to ensure that the definition will be the same
5// in whatever TU actually uses/requires the definition of 'foo'.
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -07006// CHECK: !MDCompositeType(tag: DW_TAG_structure_type, name: "foo",
7// CHECK-NOT: DIFlagFwdDecl
8// CHECK-SAME: ){{$}}
David Blaikieac00b792013-08-01 20:57:40 +00009
10struct foo {
11};
12
13struct foo *f;