a.c (222B)
1 /* SHT_INIT_ARRAY: constructor runs before test_main and sets g_ready. */ 2 static int g_ready = 0; 3 4 static void __attribute__((constructor)) init(void) { g_ready = 1; } 5 6 int test_main(void) { return g_ready == 1 ? 0 : 1; }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |