libcopp  1.1.0
feature_tests.c
Go to the documentation of this file.
1 
2  const char features[] = {"\n"
3 "C_FEATURE:"
4 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
5 "1"
6 #else
7 "0"
8 #endif
9 "c_function_prototypes\n"
10 "C_FEATURE:"
11 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
12 "1"
13 #else
14 "0"
15 #endif
16 "c_restrict\n"
17 "C_FEATURE:"
18 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
19 "1"
20 #else
21 "0"
22 #endif
23 "c_static_assert\n"
24 "C_FEATURE:"
25 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
26 "1"
27 #else
28 "0"
29 #endif
30 "c_variadic_macros\n"
31 
32 };
33 
34 int main(int argc, char** argv) { (void)argv; return features[argc]; }
int main(int argc, char **argv)
Definition: feature_tests.c:34
const char features[]
Definition: feature_tests.c:2