xref: /llvm-project/clang/test/CodeGenCXX/debug-info-incomplete-types.cpp (revision 6e975ecf5c93c40d2f088425548eb6476332629c)
1 // RUN: %clang_cc1 -debug-info-kind=limited -gomit-unreferenced-methods %s -emit-llvm -o - | FileCheck %s
2 
3 struct t1 {
4   void f1();
5   void f2();
6 };
7 
f1()8 void t1::f1() { }
9 
10 // CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "t1"
11 // CHECK-SAME: elements: [[ELEMENTS:![0-9]+]]
12 // CHECK: [[ELEMENTS]] = !{}
13