xref: /llvm-project/clang/test/Misc/cc1as-asm-debug.s (revision 1ca25763f07c7c4565fee66dd9fd5143d0c0d3b0)
133c9d9a9SPaul Robinson// Run cc1as with debug on empty file. Needs a known name so we can check it.
233c9d9a9SPaul Robinson// REQUIRES: x86-registered-target
333c9d9a9SPaul Robinson// RUN: rm -rf %t && mkdir -p %t
433c9d9a9SPaul Robinson// RUN: cp %s %t/comment.s
533c9d9a9SPaul Robinson// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=4 %t/comment.s | FileCheck %s
633c9d9a9SPaul Robinson// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=5 %t/comment.s | FileCheck %s
733c9d9a9SPaul Robinson// Asm output actually emits the .section directives twice.
833c9d9a9SPaul Robinson// CHECK: {{\.}}section .debug_info
933c9d9a9SPaul Robinson// CHECK: {{\.}}section .debug_info
1033c9d9a9SPaul Robinson// CHECK-NOT: {{\.}}section
11*1ca25763SPaul Robinson// Look for this as a relative path.
12*1ca25763SPaul Robinson// CHECK: .ascii "{{[^\\/].*}}comment.s"
13