summaryrefslogtreecommitdiff
path: root/OpenModelicaArduino/Source/CMakeFiles/feature_tests.c
diff options
context:
space:
mode:
authormanasdas172018-06-04 11:43:49 +0530
committerGitHub2018-06-04 11:43:49 +0530
commitaf40def1c18d18eb32845ec57b6b5f07a5bcf29d (patch)
tree5e6a0fa96746ea3c9beaea7fe54521d72fce8fc7 /OpenModelicaArduino/Source/CMakeFiles/feature_tests.c
parentfefaf700250d88595273b038909fe95d7602d125 (diff)
parent64db4ecdc6232c2e3f6d12a0381b7e601b49703c (diff)
downloadOpenModelicaEmbedded-1-af40def1c18d18eb32845ec57b6b5f07a5bcf29d.tar.gz
OpenModelicaEmbedded-1-af40def1c18d18eb32845ec57b6b5f07a5bcf29d.tar.bz2
OpenModelicaEmbedded-1-af40def1c18d18eb32845ec57b6b5f07a5bcf29d.zip
Merge pull request #1 from manasdas17/Ritu-Kanwar-Shekhawat
Ritu kanwar shekhawat
Diffstat (limited to 'OpenModelicaArduino/Source/CMakeFiles/feature_tests.c')
-rwxr-xr-xOpenModelicaArduino/Source/CMakeFiles/feature_tests.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenModelicaArduino/Source/CMakeFiles/feature_tests.c b/OpenModelicaArduino/Source/CMakeFiles/feature_tests.c
new file mode 100755
index 0000000..6590dde
--- /dev/null
+++ b/OpenModelicaArduino/Source/CMakeFiles/feature_tests.c
@@ -0,0 +1,34 @@
+
+ const char features[] = {"\n"
+"C_FEATURE:"
+#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404
+"1"
+#else
+"0"
+#endif
+"c_function_prototypes\n"
+"C_FEATURE:"
+#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+"1"
+#else
+"0"
+#endif
+"c_restrict\n"
+"C_FEATURE:"
+#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
+"1"
+#else
+"0"
+#endif
+"c_static_assert\n"
+"C_FEATURE:"
+#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+"1"
+#else
+"0"
+#endif
+"c_variadic_macros\n"
+
+};
+
+int main(int argc, char** argv) { (void)argv; return features[argc]; }