boot2

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

074-call-narrow.c (275B)


      1 /* §K.5 — fixed-arg call argument is cast to declared param type.
      2  * The callee declares (unsigned char x). Caller passes 258. The cast
      3  * happens at the call site: 258 & 0xff = 2, so f returns 2. */
      4 int f(unsigned char x) { return x; }
      5 
      6 int main(void) { return f(258); }