summaryrefslogtreecommitdiffstats
path: root/test cases/unit/97 link full name/libtestprovider/provider.c
blob: 5e79966f7463ff20f9da901ba7bdcfbd3c351398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
static int g_checked = 0;

static void __attribute__((constructor(101), used)) init_checked(void) {
    g_checked=100;
    fprintf(stdout, "inited\n");
}


int get_checked(void) {
    return g_checked;
}