1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/test/ref/cc65110210.c
Greg King a6b04f6e97 Changed most "backticks" (grave accents) into apostrophes.
Quotations that are embraced by tick marks now look better, in most fonts.
2019-01-05 14:57:12 -05:00

56 lines
951 B
C

/*
!!DESCRIPTION!! linker bug
!!ORIGIN!! testsuite
!!LICENCE!! public domain
*/
/*
with SVN version: 4973M
$ cl65 -v -o test.prg tests/cc65110210.c
Opened include file '/usr/local/lib/cc65/include/stdio.h'
Opened include file '/usr/local/lib/cc65/include/stddef.h'
Opened include file '/usr/local/lib/cc65/include/stdarg.h'
Opened include file '/usr/local/lib/cc65/include/limits.h'
0 errors, 0 warnings
Opened output file 'tests/cc65110210.s'
Wrote output to 'tests/cc65110210.s'
Closed output file 'tests/cc65110210.s'
cl65: Subprocess 'ld65' aborted by signal 11
*/
/* #define STANDALONE */
#include <stdio.h>
#include <limits.h>
#ifdef STANDALONE
#define NO_IMPLICIT_FUNCPTR_CONV
#define OPENTEST()
#define CLOSETEST()
#else
#endif
#ifdef NO_IMPLICIT_FUNCPTR_CONV
void (*p1func)(void);
#else
void (*p1func)();
#endif
void func(void)
{
(*p1func)();
}
int main(void)
{
printf("it works :)\n");
return (0);
}