kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

6_5_2_2_09_large_frame_struct_byval.c (260B)


      1 typedef struct Big {
      2   int a;
      3   int b;
      4   int c;
      5   int d;
      6   int e;
      7 } Big;
      8 
      9 int take_big(Big b) { return b.a + b.e; }
     10 
     11 int test_main(void) {
     12   char pad[8192];
     13   Big b = {3, 4, 5, 6, 7};
     14   pad[0] = 1;
     15   pad[8191] = 2;
     16   return take_big(b) + pad[0] + pad[8191];
     17 }