1 // RUN: llvm-mc -g -triple i386-unknown-unknown %s | FileCheck -check-prefix=CHECK-DEFAULT %s 2 // RUN: llvm-mc -g -triple i386-unknown-unknown %s -filetype=obj | obj2yaml | FileCheck -check-prefix=CHECK-DEBUG %s 3 4 // Test for Bug 38695 5 // This testcase has a single function and a .file directive 6 // without the [file-num] argument. When compiled with -g, 7 // this testcase will not report error, and generate new 8 // debug info. 9 10 .file "hello" 11 .text 12 13 f1: 14 nop 15 .size f1, .-f1 16 17 // CHECK-DEFAULT: .file "hello" 18 19 // CHECK-DEBUG: Sections: 20 // CHECK-DEBUG: - Name: .text 21 // CHECK-DEBUG: - Name: .debug_info 22 // CHECK-DEBUG: - Name: .rel.debug_info 23 // CHECK-DEBUG: Info: .debug_info 24 // CHECK-DEBUG: Symbols: 25