binutils-gdb/ld/testsuite/ld-elf/pr22269-1.c
Nick Clifton 49c16254b4 Commit: Running the linker testsuite with clang
* testsuite/config/default.exp: If not already set then create the
	CCC_OVERRIDE_OPTIONS environment variable to help when running the
	testsuite with clang.
	* testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
	* testsuite/ld-elfvers/vers.exp: Add checks to detect if files
	were built before attempting to copy them.
2020-04-17 13:03:53 +01:00

10 lines
100 B
C

extern int foo __attribute ((weak));
int
_start (void)
{
if (&foo)
return foo;
return 0;
}