]> git.sur5r.net Git - cc65/blob - test/err/cc65150311-1.c
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / test / err / cc65150311-1.c
1 /*
2   !!DESCRIPTION!! function pointer bugs
3   !!ORIGIN!!      testsuite
4   !!LICENCE!!     Public Domain
5   !!AUTHOR!!      Greg
6 */
7
8 /*
9   see: http://www.cc65.org/mailarchive/2015-03/11726.html
10   and: http://www.cc65.org/mailarchive/2015-03/11734.html
11 */
12
13 static int func(void) {return 0;}
14 static int (*p)(void);
15 static int n;
16
17 int main(void) {
18
19     p = func;
20     n = (p == &func);
21     n = (p == func);
22
23     ++p; /* invalid C */
24
25     return 0;
26 }