1 // With -fuse-ld=lld, -demangle is always passed to the linker on Darwin. 2 // REQUIRES: shell 3 4 // RUN: %clang --target=x86_64-apple-darwin -### \ 5 // RUN: -fuse-ld=lld -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \ 6 // RUN: | FileCheck %s 7 // FIXME: Remove ld.darwinnew once it's the default (and only) mach-o lld. 8 // RUN: %clang --target=x86_64-apple-darwin -### \ 9 // RUN: -fuse-ld=lld.darwinnew -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \ 10 // RUN: | FileCheck %s 11 12 // CHECK: "-demangle" 13