init4.c   [plain text]


extern void checkInitOrder(int expected);

__attribute__((constructor))
static void myInit()
{
    checkInitOrder(4);
}