]> git.sur5r.net Git - cc65/blob - test/ref/cc65080328.c
Only for jumps, the lib uses named asm labels in branches
[cc65] / test / ref / cc65080328.c
1 /*
2   !!DESCRIPTION!! 
3   !!ORIGIN!!      testsuite
4   !!LICENCE!!     Public Domain
5   !!AUTHOR!!
6 */
7
8 /*
9 The following code produces an 'Error: Incompatible pointer types' at
10 the last line when compiling with snapshot-2.11.9.20080316 without
11 optimizations. If I remove the struct inside f() it compiles fine ?!?
12
13 Best, Oliver
14 */
15
16 #include <stdio.h>
17
18 void f(void){struct{int i;}d;}
19 struct{void(*p)(void);}s={f};
20
21 int main(void)
22 {
23     printf("it works :)\n");
24
25     return 0;
26 }