blob: 7c20ca4dd625fd820f3e97263187349604d39472 [file] [log] [blame]
David Blaikie79af3842013-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'.
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +00006// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "foo",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +00007// CHECK-NOT: DIFlagFwdDecl
8// CHECK-SAME: ){{$}}
David Blaikie79af3842013-08-01 20:57:40 +00009
10struct foo {
11};
12
13struct foo *f;