kit

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

attr_p2_10_alias.c (246B)


      1 /* Phase 2: alias("target") emits a symbol that points at target's body.
      2  * Calling through the alias must execute target's code. */
      3 int bar(void) { return 42; }
      4 int foo(void) __attribute__((alias("bar")));
      5 
      6 int test_main(void) { return foo(); }