kit

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

04_hidden_sym.c (314B)


      1 /* Exercises STV_HIDDEN: hidden-visibility function and object.
      2  * Both symbols must round-trip with STV_HIDDEN in st_other. */
      3 
      4 __attribute__((visibility("hidden"))) int hidden_val = 7;
      5 
      6 __attribute__((visibility("hidden"))) int hidden_fn(void) { return hidden_val; }
      7 
      8 int public_fn(void) { return hidden_fn(); }