extra: get max correctly
[smatch.git] / validation / backend / function-ptr.c
blobfc022b3cd9cfc1ee1bb4e3c1093d883d9ce427a9
1 typedef int (*fn_t)(int x, int y);
3 static int run(fn_t fn, int x, int y)
5 return fn(x, y);
8 /*
9 * check-name: Function pointer code generation
10 * check-command: ./sparsec -c $file -o tmp.o