minix/external/bsd/llvm/dist/clang/test/CodeGen/debug-info-gline-tables-only2.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

13 lines
365 B
C

// RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s
// Checks that clang with "-gline-tables-only" emits metadata for
// compile unit, subprogram and file.
int main() {
// CHECK: ret i32 0, !dbg
return 0;
}
// CHECK: !llvm.dbg.cu = !{!0}
// CHECK: DW_TAG_compile_unit
// CHECK: {{.*main.* DW_TAG_subprogram}}
// CHECK: DW_TAG_file_type