Add tests for PR ld/20513
[deliverable/binutils-gdb.git] / ld / testsuite / ld-gc / gc.exp
index e1d8d015d8434aa80bf191d6e11adf3be9f4b302..a6f3e13edce66a6f88ca0cebe584ca52ff4d9e94 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for ld-gc tests
-#   Copyright (C) 2008-2015 Free Software Foundation, Inc.
+#   Copyright (C) 2008-2016 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -146,3 +146,18 @@ if { [is_remote host] || [which $CC] != 0 } {
     ld_compile "$CC $CFLAGS $cflags -O0" $srcdir/$subdir/pr19161-2.c tmpdir/pr19161-2.o
     run_dump_test "pr19161"
 }
+
+if { [is_elf_format] && [check_shared_lib_support] \
+     && ([is_remote host] || [which $CC] != 0) } {
+    run_cc_link_tests [list \
+       [list \
+           "Build libpr20306.so" \
+           "-shared" \
+           "-fPIC" \
+           {pr20306.c} \
+           {} \
+           "libpr20306.so" \
+       ] \
+    ]
+    run_dump_test "pr20306"
+}
This page took 0.02471 seconds and 4 git commands to generate.