kit

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

a.c (265B)


      1 /* SHN_COMMON: tentative definition in both TUs coalesces into one copy.
      2  * b.c writes to shared_val; a.c reads it back through the same object. */
      3 int shared_val;
      4 void set_shared(int v);
      5 int test_main(void) {
      6   set_shared(99);
      7   return shared_val == 99 ? 0 : 1;
      8 }