brintos

brintos / llvm-project-archived public Read only

0
0
Text · 766 B · c3bdaed Raw
25 lines · plain
1// RUN: llvm-mc -g -triple i386-unknown-unknown  %s | FileCheck -check-prefix=CHECK-DEFAULT %s2// RUN: llvm-mc -g -triple i386-unknown-unknown %s -filetype=obj | obj2yaml | FileCheck -check-prefix=CHECK-DEBUG %s3 4// Test for Bug 386955// This testcase has a single function and a .file directive6// without the [file-num] argument.  When compiled with -g,7// this testcase will not report error, and generate new8// debug info.9 10        .file "hello"11.text12 13f1:14        nop15.size f1, .-f116 17// CHECK-DEFAULT: .file "hello"18 19// CHECK-DEBUG:  Sections:20// CHECK-DEBUG:  - Name:            .text21// CHECK-DEBUG:  - Name:            .debug_info22// CHECK-DEBUG:  - Name:            .rel.debug_info23// CHECK-DEBUG:    Info:            .debug_info24// CHECK-DEBUG:  Symbols:25