llvm-project/clang/test/Driver/riscv-args.c

8 lines
314 B
C

// Check the arguments are correctly passed
// Make sure -T is the last with gcc-toolchain option
// RUN: %clang -### -target riscv32 \
// RUN: --gcc-toolchain= -Xlinker --defsym=FOO=10 -T a.lds %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-LD %s
// CHECK-LD: {{.*}} "--defsym=FOO=10" {{.*}} "-T" "a.lds"