kit

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

a.c (417B)


      1 /* Mach-O subsections-via-symbols GC regression: a dead atom with a relocation
      2  * must not emit that relocation against the first live atom in the same input
      3  * section. */
      4 
      5 __attribute__((noinline)) int live_fn(void) { return 0; }
      6 __attribute__((noinline)) int dead_target(void) { return 7; }
      7 __attribute__((noinline)) int dead_reloc_source(void) { return dead_target(); }
      8 
      9 int test_main(void) { return live_fn(); }