[clang][test] Fix solaris ld driver test to not assume gnu ld location (#186250)

This commit is contained in:
Anders Waldenborg 2026-04-04 11:25:36 +02:00 committed by GitHub
parent 093c6391b2
commit da0aec2990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
echo "Unexpectedly running fake ld" 1>&2
exit 1

View File

@ -1,7 +1,7 @@
// REQUIRES: system-solaris
// Check that clang invokes the native ld.
// Check that clang invokes the native ld, not whatever "ld" that happens to be in PATH
// RUN: test -f /usr/gnu/bin/ld && env PATH=/usr/gnu/bin %clang -o %t.o %s
// RUN: env PATH=%S/Inputs/fake_ld/ %clang -v -o %t.o %s
int main() { return 0; }