This test was introduced in #118644, but was over-specified in that it assumed the path of the linker was always `cc`.