kit

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

a.c (381B)


      1 /* --gc-sections at function granularity: with -ffunction-sections each
      2  * fn lands in .text.<sym>, so an unreachable function gets dropped on
      3  * its own. Verifies the basic transitive-from-entry liveness rule. */
      4 
      5 __attribute__((noinline)) int live_fn(void) { return 0; }
      6 __attribute__((noinline)) int unreachable_fn(void) { return 1; }
      7 
      8 int test_main(void) { return live_fn(); }