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
9 # CHECK: [[FILE]]{{/|(\\)+}}foo.exe: \
10 # CHECK-NEXT: [[FILE]]{{/|(\\)+}}foo.o \
11 # CHECK-NEXT: [[FILE]]{{/|(\\)+}}bar\ baz.o \
12 # CHECK-NEXT: [[FILE]]{{/|(\\)+}}\#quux$$.o
14 # CHECK-NEXT: [[FILE]]{{/|(\\)+}}foo.o:
16 # CHECK-NEXT: [[FILE]]{{/|(\\)+}}bar\ baz.o:
18 # CHECK-NEXT: [[FILE]]{{/|(\\)+}}\#quux$$.o: