kit

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

attr_p2_visibility_bad.c (272B)


      1 /* Phase 2: visibility() accepts only "default", "hidden", "protected",
      2  * or "internal". Any other string must be rejected. */
      3 int hidden_fn(void) __attribute__((visibility("totallyfake")));
      4 
      5 int hidden_fn(void) { return 0; }
      6 
      7 int test_main(void) { return hidden_fn(); }