kit

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

21_static_func_O2.c (353B)


      1 /* Same surface as 02_static_func, compiled at -O2.  At this opt level
      2  * clang typically inlines the static, leaving result() with a single
      3  * mov+ret.  The local symbol may be eliminated entirely or kept as
      4  * STT_NOTYPE; the roundtrip is exercised either way. */
      5 
      6 static int add_one(int x) { return x + 1; }
      7 
      8 int result(void) { return add_one(41); }