boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

00124.c (216B)


      1 int
      2 f2(int c, int b)
      3 {
      4 	return c - b;
      5 }
      6 
      7 int (*
      8 f1(int a, int b))(int c, int b)
      9 {
     10 	if (a != b)
     11 		return f2;
     12 	return 0;
     13 }
     14 
     15 int
     16 main()
     17 {
     18 	int (* (*p)(int a, int b))(int c, int d) = f1;
     19 
     20 
     21 	return (*(*p)(0, 2))(2, 2);
     22 }