/*
* C versus C++ test
* Structures with initializations based on field names
*/
#ifdef __cplusplus
# include <cstdio>
#else
# include <stdio.h>
#endif
struct test_s {
int apple;
float orange;
} g_test = { .apple=42, .orange=3.1415926535f };
int main() {
printf("apple: %d\norange: %f\n", g_test.apple, g_test.orange);
return 0;
}