binutils-gdb/ld/testsuite/ld-plugin/lto-18c.c
Alan Modra 36dcb3a97d Re: lto-18 test
Extend the test a little to archives, not that we expect this to
fail.  Nor has the lto-18 test ever failed without -flto.

	* testsuite/ld-plugin/lto-18b.c (select): Remove.
	* testsuite/ld-plugin/lto-18c.c (select): Remove.
	* testsuite/ld-plugin/lto.exp: Build archives for lto-18 too,
	and run static versions of the test.
2020-09-10 18:58:51 +09:30

9 lines
93 B
C

extern int f1 (int);
int f2 (int x)
{
if (x > 0)
return x * f1 (x - 1);
return 1;
}