diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-12-17 21:57:25 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-12-17 21:57:25 +0000 |
| commit | 7cf80e3850d421a7dd57242351cf33ec0b8d39d9 (patch) | |
| tree | 5d44e19a3e59cb07d4bc01b8c069b98c885e041c /clang/test/Driver/linux-ld.c | |
| parent | 8f3c34943011122665a1bbfff6c159044090f8d2 (diff) | |
| download | bcm5719-llvm-7cf80e3850d421a7dd57242351cf33ec0b8d39d9.tar.gz bcm5719-llvm-7cf80e3850d421a7dd57242351cf33ec0b8d39d9.zip | |
Teach the link-step test to verify that we don't pass bad --hash-style
flags on MIPS paltforms.
llvm-svn: 146837
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
| -rw-r--r-- | clang/test/Driver/linux-ld.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index b611aef4037..086080769f8 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -171,3 +171,26 @@ // CHECK-SUSE-10-3-PPC64: "-L[[SYSROOT]]/usr/lib/gcc/powerpc64-suse-linux/4.1.2/../../../../lib64" // CHECK-SUSE-10-3-PPC64: "-L[[SYSROOT]]/lib/../lib64" // CHECK-SUSE-10-3-PPC64: "-L[[SYSROOT]]/usr/lib/../lib64" +// +// Check that we do not pass --hash-style=gnu and --hash-style=both to linker +// when build for MIPS platforms. +// RUN: %clang %s -### -o %t.o 2>&1 \ +// RUN: -ccc-host-triple mips-linux-gnu -ccc-clang-archs mips \ +// RUN: | FileCheck --check-prefix=CHECK-MIPS %s +// CHECK-MIPS: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS-NOT: "--hash-style={{gnu|both}}" +// RUN: %clang %s -### -o %t.o 2>&1 \ +// RUN: -ccc-host-triple mipsel-linux-gnu -ccc-clang-archs mipsel \ +// RUN: | FileCheck --check-prefix=CHECK-MIPSEL %s +// CHECK-MIPSEL: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPSEL-NOT: "--hash-style={{gnu|both}}" +// RUN: %clang %s -### -o %t.o 2>&1 \ +// RUN: -ccc-host-triple mips64-linux-gnu -ccc-clang-archs mips64 \ +// RUN: | FileCheck --check-prefix=CHECK-MIPS64 %s +// CHECK-MIPS64: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64-NOT: "--hash-style={{gnu|both}}" +// RUN: %clang %s -### -o %t.o 2>&1 \ +// RUN: -ccc-host-triple mips64el-linux-gnu -ccc-clang-archs mips64el \ +// RUN: | FileCheck --check-prefix=CHECK-MIPS64EL %s +// CHECK-MIPS64EL: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64EL-NOT: "--hash-style={{gnu|both}}" |

