Skip to content

Commit f0535c7

Browse files
committed
[Driver] Check crt* when shared linking on OpenBSD
1 parent 41375b9 commit f0535c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/test/Driver/openbsd.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
// CHECK-PG: "-cc1" "-triple" "i686-pc-openbsd"
1111
// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-nopie" "-o" "a.out" "{{.*}}gcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lcompiler_rt" "-lpthread_p" "-lc_p" "-lcompiler_rt" "{{.*}}crtend.o"
1212

13+
// Check for variants of crt* when creating shared libs
14+
// RUN: %clang --target=i686-pc-openbsd -pthread -shared -### %s 2>&1 \
15+
// RUN: | FileCheck --check-prefix=CHECK-SHARED %s
16+
// CHECK-SHARED: "-cc1" "-triple" "i686-pc-openbsd"
17+
// CHECK-SHARED: ld{{.*}}" "--eh-frame-hdr" "-shared" "-o" "a.out" "{{.*}}crtbeginS.o" "{{.*}}.o" "-lcompiler_rt" "-lpthread" "-lcompiler_rt" "{{.*}}crtendS.o"
18+
1319
// Check CPU type for i386
1420
// RUN: %clang --target=i386-unknown-openbsd -### -c %s 2>&1 \
1521
// RUN: | FileCheck -check-prefix=CHECK-i386-CPU %s

0 commit comments

Comments
 (0)