2023-07-13 19:20:28 -07:00
|
|
|
|
|
|
|
const char features[] = {"\n"
|
|
|
|
"C_FEATURE:"
|
2023-09-17 12:37:26 -07:00
|
|
|
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
|
2023-07-13 19:20:28 -07:00
|
|
|
"1"
|
|
|
|
#else
|
|
|
|
"0"
|
|
|
|
#endif
|
|
|
|
"c_function_prototypes\n"
|
|
|
|
"C_FEATURE:"
|
2023-09-17 12:37:26 -07:00
|
|
|
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
2023-07-13 19:20:28 -07:00
|
|
|
"1"
|
|
|
|
#else
|
|
|
|
"0"
|
|
|
|
#endif
|
|
|
|
"c_restrict\n"
|
|
|
|
"C_FEATURE:"
|
2023-09-17 12:37:26 -07:00
|
|
|
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
|
2023-07-13 19:20:28 -07:00
|
|
|
"1"
|
|
|
|
#else
|
|
|
|
"0"
|
|
|
|
#endif
|
|
|
|
"c_static_assert\n"
|
|
|
|
"C_FEATURE:"
|
2023-09-17 12:37:26 -07:00
|
|
|
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
2023-07-13 19:20:28 -07:00
|
|
|
"1"
|
|
|
|
#else
|
|
|
|
"0"
|
|
|
|
#endif
|
|
|
|
"c_variadic_macros\n"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
int main(int argc, char** argv) { (void)argv; return features[argc]; }
|