added tests as prepared by oliver
This commit is contained in:
24
test/ref/cc65080328.c
Normal file
24
test/ref/cc65080328.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
!!DESCRIPTION!!
|
||||
!!ORIGIN!! testsuite
|
||||
!!LICENCE!! Public Domain
|
||||
!!AUTHOR!!
|
||||
*/
|
||||
|
||||
/*
|
||||
The following code produces an 'Error: Incompatible pointer types' at
|
||||
the last line when compiling with snapshot-2.11.9.20080316 without
|
||||
optimizations. If I remove the struct inside f() it compiles fine ?!?
|
||||
|
||||
Best, Oliver
|
||||
*/
|
||||
|
||||
void f(void){struct{int i;}d;}
|
||||
struct{void(*p)(void);}s={f};
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("it works :)\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user