11 lines · c
1// Check the arguments are correctly passed2 3// Make sure -T is the last with gcc-toolchain option4// RUN: %clang -### --target=aarch64-none-elf --gcc-toolchain= -Xlinker --defsym=FOO=10 -T a.lds -u foo %s 2>&1 \5// RUN: | FileCheck -check-prefix=CHECK-LD %s6// RUN: %clang -### --target=armv6m-none-eabi --gcc-toolchain= -Xlinker --defsym=FOO=10 -T a.lds -u foo %s 2>&1 \7// RUN: | FileCheck -check-prefix=CHECK-LD %s8// RUN: %clang -### --target=riscv32 --gcc-toolchain= -Xlinker --defsym=FOO=10 -T a.lds -u foo %s 2>&1 \9// RUN: | FileCheck -check-prefix=CHECK-LD %s10// CHECK-LD: {{.*}} "-T" "a.lds" "-u" "foo" {{.*}} "--defsym=FOO=10"11