1 2 3 4 5 6 7 8 9 10
static struct foo variants[] = { #ifdef FOO {.bar = 11}, #endif {.bar = 10}, }; static struct tst_test test = { .test_variants = ARRAY_SIZE(variants), };