[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AsmParser / directive_file-3.s
blobc3bdaede2705808f921293d1ea5f11c063472e34
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
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.
10 .file "hello"
11 .text
13 f1:
14 nop
15 .size f1, .-f1
17 // CHECK-DEFAULT: .file "hello"
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: