boot2

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

121-redecl-fn-paramnames.c (412B)


      1 /* Compatible redecl: prototypes that differ only in parameter names
      2  * (or presence/absence of a parameter name) describe the same function
      3  * type. tcc.flat.c hits this when a stdlib fn is declared once with a
      4  * named param and once without. */
      5 
      6 int times3(int);
      7 int times3(int x);
      8 
      9 int times3(int x) { return x + x + x; }
     10 
     11 int main(int argc, char **argv) {
     12     if (times3(7) != 21) return 1;
     13     return 0;
     14 }