1// 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'. 6// CHECK: ; [ DW_TAG_structure_type ] [foo] {{.*}} [def] 7 8struct foo { 9}; 10 11struct foo *f; 12