Add a testcase for PR ld/22751
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 28 Jan 2018 00:04:34 +0000 (16:04 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 28 Jan 2018 00:04:34 +0000 (16:04 -0800)
commitfef75122c0fe3abafb99d79a63545c1531f4107c
treef5d5ced02ce4086635d582664b0f0eb056c7de8b
parent8d3b78ce4563e65466202c0d29d0603877846323
Add a testcase for PR ld/22751

Since dummy.o must be placed before

-Wl,--whole-archive tmpdir/pr22751.a -Wl,--no-whole-archive

to trigger the bug, this patch adds an optional trailing ld options to
run_ld_link_exec_tests.

PR ld/22751
* testsuite/config/default.exp (INT128_CFLAGS): New.
* testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
Run ld/22751 tests.
* testsuite/ld-plugin/pr22751.c: New file.
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
ld trailing options.
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr22751.c [new file with mode: 0644]
ld/testsuite/lib/ld-lib.exp