old-cross-binutils/ld/testsuite/ld-plugin/func1p.c
H.J. Lu c413941892 Add plugin visibility test
* ld-plugin/func1p.c: New file.
	* ld-plugin/func2i.c: Likewise.
	* ld-plugin/func3h.c: Likewise.

	* ld-plugin/plugin.exp (plugin_extra_elf_tests): Add plugin
	visibility test.
2012-12-07 19:14:41 +00:00

8 lines
101 B
C

extern int retval;
int
__attribute__ ((visibility ("protected")))
func1 (void)
{
return retval;
}