127edaee8SShihPo Hung // Check the arguments are correctly passed 227edaee8SShihPo Hung 327edaee8SShihPo Hung // Make sure -T is the last with gcc-toolchain option 4*da62a5c6SFangrui Song // RUN: %clang -### --target=riscv32 --gcc-toolchain= -Xlinker --defsym=FOO=10 -T a.lds -u foo %s 2>&1 \ 527edaee8SShihPo Hung // RUN: | FileCheck -check-prefix=CHECK-LD %s 65635d2a5SKito Cheng // CHECK-LD: {{.*}} "--defsym=FOO=10" {{.*}} "-u" "foo" {{.*}} "-T" "a.lds" 7