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 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