Project

General

Profile

Feature #3692 » test9.c

Evgeny Novikov, 03/14/2013 02:19 PM

 
struct B
{
int x;
};
struct A
{
int field1;
int (*(*field2)(int))(int, int (*)(int, int));
struct B *field3;
struct B field4;
int (*field5)(int);
const char *field6;
};
int (*func(int arg))(int, int (*)(int, int))
{
return arg;
}
struct B var1;
struct A var2 = {
.field1 = 10
, .field2 = func
, .field3 = &var1
, .field4 = { .x = 20 }
, .field5 = 0
, .field6 = "driver"
};

(1-1/11)