1 struct foo { 2 int val; 3 }; 4 5 static struct foo variants[] = {{1}, {2}, {3}}; 6 7 static struct tst_test test = { 8 .test_variants = ARRAY_SIZE(variants), 9 }; 10