xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/debug-info-gline-tables-only2.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s
2 // Checks that clang with "-gline-tables-only" emits metadata for
3 // compile unit, subprogram and file.
4 
main()5 int main() {
6   // CHECK: ret i32 0, !dbg
7   return 0;
8 }
9 
10 // CHECK: !llvm.dbg.cu = !{!0}
11 // CHECK: DW_TAG_compile_unit
12 // CHECK: {{.*main.* DW_TAG_subprogram}}
13 // CHECK: DW_TAG_file_type
14