]> git.sur5r.net Git - cc65/blob - test/ref/cc65110210.c
Changed most "backticks" (grave accents) into apostrophes.
[cc65] / test / ref / cc65110210.c
1 /*
2   !!DESCRIPTION!! linker bug
3   !!ORIGIN!!      testsuite
4   !!LICENCE!!     public domain
5 */
6
7 /*
8 with SVN version: 4973M
9
10 $ cl65 -v -o test.prg tests/cc65110210.c
11 Opened include file '/usr/local/lib/cc65/include/stdio.h'
12 Opened include file '/usr/local/lib/cc65/include/stddef.h'
13 Opened include file '/usr/local/lib/cc65/include/stdarg.h'
14 Opened include file '/usr/local/lib/cc65/include/limits.h'
15 0 errors, 0 warnings
16 Opened output file 'tests/cc65110210.s'
17 Wrote output to 'tests/cc65110210.s'
18 Closed output file 'tests/cc65110210.s'
19 cl65: Subprocess 'ld65' aborted by signal 11
20
21 */
22
23 /* #define STANDALONE */
24
25 #include <stdio.h>
26 #include <limits.h>
27
28 #ifdef STANDALONE
29
30 #define NO_IMPLICIT_FUNCPTR_CONV
31
32 #define OPENTEST()
33 #define CLOSETEST()
34
35 #else
36
37 #endif
38
39 #ifdef NO_IMPLICIT_FUNCPTR_CONV
40 void (*p1func)(void);
41 #else
42 void (*p1func)();
43 #endif
44
45 void func(void)
46 {
47     (*p1func)();
48 }
49
50 int main(void)
51 {
52     printf("it works :)\n");
53
54     return (0);
55 }