Implement a workaround to allow this test program to be compiled with clang.

It seems that if a pragma is used to define a weak alias for a local
function, the pragma must appear after the function is defined.

PR:		193056
MFC after:	1 week
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
markj 2014-09-17 04:02:56 +00:00
parent d46a293b8b
commit 0958b711f9

View File

@ -34,14 +34,14 @@
* leading underscores.
*/
#pragma weak _go = go
static int
go(int a)
{
return (a + 1);
}
#pragma weak _go = go
static void
handle(int sig)
{