6 int test_##name(void) { return val OP 7; } \
7 int test2_##name(int v) { return val OP v; } \
8 int testp_##name(void) { return 7 OP val; } \
9 int testp2_##name(int v) { return v OP val; }
11 int test_cmp_testset(int v, int v2) { return (v & 14) > 0; }
25 int res1, res2, res3, res4;
29 res1 = test_##name(); \
30 res2 = test2_##name(20); \
31 res3 = testp_##name(); \
32 res4 = testp2_##name(20); \
33 printf("Test %s: %d (should be %d)\n", #name, res1, 11 OP 7); \
34 printf("Test2 %s: %d (should be %d)\n", #name, res2, 11 OP 20); \
35 printf("Testp %s: %d (should be %d)\n", #name, res3, 7 OP 11); \
36 printf("Testp2 %s: %d (should be %d)\n", #name, res4, 20 OP 11);