xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/debug-info-limited.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // Ensure we emit the full definition of 'foo' even though only its declaration
4*f4a2713aSLionel Sambuc // is needed, since C has no ODR to ensure that the definition will be the same
5*f4a2713aSLionel Sambuc // in whatever TU actually uses/requires the definition of 'foo'.
6*f4a2713aSLionel Sambuc // CHECK: ; [ DW_TAG_structure_type ] [foo] {{.*}} [def]
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc struct foo {
9*f4a2713aSLionel Sambuc };
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc struct foo *f;
12