mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
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:
parent
583b13f588
commit
dab6e14240
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271699
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue