2014-09-24 14:45:10 +00:00
|
|
|
/*
|
2022-04-17 14:07:52 +00:00
|
|
|
!!DESCRIPTION!!
|
2014-09-24 14:45:10 +00:00
|
|
|
!!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
|
|
|
|
*/
|
|
|
|
|
2014-11-22 17:28:05 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2014-09-24 14:45:10 +00:00
|
|
|
void f(void){struct{int i;}d;}
|
|
|
|
struct{void(*p)(void);}s={f};
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
printf("it works :)\n");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|