blob: ed5608b5d61fe3cc9bf944c98d000f3f4d541cea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* bug-2569.c
A false error on definitions of functions returning function pointers
following the declaration.
*/
#include <testfwk.h>
#include <stdint.h>
#ifdef __SDCC
#pragma std_c99
#endif
#pragma disable_warning 85
typedef void l_fptr_1(void);
l_fptr_1 *dosub(void);
l_fptr_1 *dosub(void)
{
return 0;
}
void (*sigset(int signo, void (*func)(int signo)))(int signo);
void (*sigset(int signo, void (*func)(int signo)))(int signo)
{
return 0;
}
void testBug(void)
{
dosub();
#ifndef __SDCC // Bug #2664.
sigset(0, 0);
#endif
}
|