aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend/function-ptr.c
blob: 35fb678af08eef280871426acedbe768693a892d (plain)
1
2
3
4
5
6
7
8
9
10
11
typedef int (*fn_t)(int x, int y);

static int run(fn_t fn, int x, int y)
{
	return fn(x, y);
}

/*
 * check-name: Function pointer code generation
 * check-command: sparsec -c $file -o tmp.o
 */