2013-08-02 04:57:40 +08:00
|
|
|
// 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'.
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "foo",
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-NOT: DIFlagFwdDecl
|
|
|
|
// CHECK-SAME: ){{$}}
|
2013-08-02 04:57:40 +08:00
|
|
|
|
|
|
|
struct foo {
|
|
|
|
};
|
|
|
|
|
|
|
|
struct foo *f;
|