1# REQUIRES: x86 2# RUN: mkdir -p %t 3# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t/foo.o 4# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o "%t/bar baz.o" 5# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o "%t/#quux$.o" 6# RUN: ld.lld -o %t/foo.exe %t/foo.o %t/"bar baz.o" "%t/#quux$.o" --dependency-file=%t/foo.d 7# RUN: FileCheck --match-full-lines -DFILE=%t %s < %t/foo.d 8 9# CHECK: [[FILE]]{{/|(\\)+}}foo.exe: \ 10# CHECK-NEXT: [[FILE]]{{/|(\\)+}}foo.o \ 11# CHECK-NEXT: [[FILE]]{{/|(\\)+}}bar\ baz.o \ 12# CHECK-NEXT: [[FILE]]{{/|(\\)+}}\#quux$$.o 13# CHECK-EMPTY: 14# CHECK-NEXT: [[FILE]]{{/|(\\)+}}foo.o: 15# CHECK-EMPTY: 16# CHECK-NEXT: [[FILE]]{{/|(\\)+}}bar\ baz.o: 17# CHECK-EMPTY: 18# CHECK-NEXT: [[FILE]]{{/|(\\)+}}\#quux$$.o: 19 20.global _start 21_start: 22