scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

0090-fptr.c (121B)


      1 struct S
      2 {
      3 	int	(*fptr)();
      4 };
      5 
      6 int
      7 foo()
      8 {
      9 	return 0;
     10 }
     11 
     12 int
     13 main()
     14 {
     15 	struct S v;
     16 	
     17 	v.fptr = foo;
     18 	return v.fptr();
     19 }
     20