Skip to content

Commit 7360c6a

Browse files
committed
[Driver][test][NFC] Simplify some of the OpenBSD tests
1 parent 9299ace commit 7360c6a

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

clang/test/Driver/openbsd.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %clang --target=i686-pc-openbsd -static -### %s 2>&1 \
33
// RUN: | FileCheck --check-prefix=CHECK-LD-STATIC-EH %s
44
// CHECK-LD-STATIC-EH: "-cc1" "-triple" "i686-pc-openbsd"
5-
// CHECK-LD-STATIC-EH: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bstatic" "-o" "a.out" "{{.*}}rcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o"
5+
// CHECK-LD-STATIC-EH: ld{{.*}}" "{{.*}}" "--eh-frame-hdr" "-Bstatic"
66

77
// Check for profiling variants of libraries when linking and -nopie
88
// RUN: %clang --target=i686-pc-openbsd -pg -pthread -### %s 2>&1 \
@@ -26,10 +26,8 @@
2626
// Check that the new linker flags are passed to OpenBSD
2727
// RUN: %clang --target=i686-pc-openbsd -r -### %s 2>&1 \
2828
// RUN: | FileCheck --check-prefix=CHECK-LD-R %s
29-
// RUN: %clang --target=i686-pc-openbsd -s -### %s 2>&1 \
30-
// RUN: | FileCheck --check-prefix=CHECK-LD-S %s
31-
// RUN: %clang --target=i686-pc-openbsd -t -### %s 2>&1 \
32-
// RUN: | FileCheck --check-prefix=CHECK-LD-T %s
29+
// RUN: %clang --target=i686-pc-openbsd -s -t -### %s 2>&1 \
30+
// RUN: | FileCheck --check-prefix=CHECK-LD-ST %s
3331
// RUN: %clang --target=mips64-unknown-openbsd -### %s 2>&1 \
3432
// RUN: | FileCheck --check-prefix=CHECK-MIPS64-LD %s
3533
// RUN: %clang --target=mips64el-unknown-openbsd -### %s 2>&1 \
@@ -39,14 +37,12 @@
3937
// CHECK-LD-R-NOT: "-l
4038
// CHECK-LD-R-NOT: crt{{[^./\\]+}}.o
4139
// CHECK-LD-R: "-r"
42-
// CHECK-LD-S: "-cc1" "-triple" "i686-pc-openbsd"
43-
// CHECK-LD-S: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "-s" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o"
44-
// CHECK-LD-T: "-cc1" "-triple" "i686-pc-openbsd"
45-
// CHECK-LD-T: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "-t" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o"
40+
// CHECK-LD-ST: "-cc1" "-triple" "i686-pc-openbsd"
41+
// CHECK-LD-ST: ld{{.*}}" "{{.*}}" "-s" "-t"
4642
// CHECK-MIPS64-LD: "-cc1" "-triple" "mips64-unknown-openbsd"
47-
// CHECK-MIPS64-LD: ld{{.*}}" "-EB" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o"
43+
// CHECK-MIPS64-LD: ld{{.*}}" "-EB"
4844
// CHECK-MIPS64EL-LD: "-cc1" "-triple" "mips64el-unknown-openbsd"
49-
// CHECK-MIPS64EL-LD: ld{{.*}}" "-EL" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o"
45+
// CHECK-MIPS64EL-LD: ld{{.*}}" "-EL"
5046

5147
// Check that --sysroot is passed to the linker
5248
// RUN: %clang --target=i686-pc-openbsd -### %s 2>&1 \

0 commit comments

Comments
 (0)