projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
regression
/
tests
/
bug1678803.c
1
/*
2
bug 1678803
3
This should not generate error 12 "called object is not a function".
4
*/
5
6
#include <testfwk.h>
7
8
typedef void (*func)(void);
9
10
void foo(void)
11
{
12
}
13
14
#ifdef SDCC_mcs51
15
func GetFunc(void) __naked
16
{
17
__asm
18
19
; some assembler code
20
mov dptr,#_foo
21
ret
22
23
__endasm;
24
}
25
#endif
26
27
void testCaller(void)
28
{
29
#ifdef SDCC_mcs51
30
GetFunc()();
31
#endif
32
33
ASSERT (1);
34
}