1// Run cc1as with debug on empty file. Needs a known name so we can check it. 2// REQUIRES: x86-registered-target 3// RUN: rm -rf %t && mkdir -p %t 4// RUN: cp %s %t/comment.s 5// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=4 %t/comment.s | FileCheck %s 6// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=5 %t/comment.s | FileCheck %s 7// Asm output actually emits the .section directives twice. 8// CHECK: {{\.}}section .debug_info 9// CHECK: {{\.}}section .debug_info 10// CHECK-NOT: {{\.}}section 11// Look for this as a relative path. 12// CHECK: .ascii "{{[^\\/].*}}comment.s" 13