diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Driver/linux-ld.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c index c476ec24f9..6cc143f2c2 100644 --- a/test/Driver/linux-ld.c +++ b/test/Driver/linux-ld.c @@ -1119,3 +1119,9 @@ // RUN: --sysroot=%S/Inputs/basic_linux_tree 2>& 1 \ // RUN: | FileCheck --check-prefix=CHECK-PG %s // CHECK-PG: gcrt1.o + +// GCC forwards -u to the linker. +// RUN: %clang -u asdf --target=x86_64-unknown-linux -### %s \ +// RUN: --sysroot=%S/Inputs/basic_linux_tree 2>& 1 \ +// RUN: | FileCheck --check-prefix=CHECK-u %s +// CHECK-u: "-u" "asdf" |