<div dir="ltr">This is OK but from what I see in applications, C99 is the version actually in use.<div><br></div><div>The avionics community I work with hasn't even adopted C11. </div><div><br></div><div>Even C++11/14 are just now getting some traction.</div><div><br></div><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 25, 2022 at 3:03 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
 spec/build/testsuites/sptests/grp.yml      |  2 +<br>
 spec/build/testsuites/sptests/spstdc17.yml | 22 +++++++++<br>
 testsuites/sptests/spstdc17/init.c         | 57 ++++++++++++++++++++++<br>
 testsuites/sptests/spstdc17/spstdc17.doc   | 12 +++++<br>
 4 files changed, 93 insertions(+)<br>
 create mode 100644 spec/build/testsuites/sptests/spstdc17.yml<br>
 create mode 100644 testsuites/sptests/spstdc17/init.c<br>
 create mode 100644 testsuites/sptests/spstdc17/spstdc17.doc<br>
<br>
diff --git a/spec/build/testsuites/sptests/grp.yml b/spec/build/testsuites/sptests/grp.yml<br>
index 891a78eb86..c8f70ed13b 100644<br>
--- a/spec/build/testsuites/sptests/grp.yml<br>
+++ b/spec/build/testsuites/sptests/grp.yml<br>
@@ -394,6 +394,8 @@ links:<br>
   uid: spsimplesched03<br>
 - role: build-dependency<br>
   uid: spsize<br>
+- role: build-dependency<br>
+  uid: spstdc17<br>
 - role: build-dependency<br>
   uid: spstdthreads01<br>
 - role: build-dependency<br>
diff --git a/spec/build/testsuites/sptests/spstdc17.yml b/spec/build/testsuites/sptests/spstdc17.yml<br>
new file mode 100644<br>
index 0000000000..8c60b0a7fb<br>
--- /dev/null<br>
+++ b/spec/build/testsuites/sptests/spstdc17.yml<br>
@@ -0,0 +1,22 @@<br>
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
+build-type: test-program<br>
+cflags:<br>
+- -std=c17<br>
+- -pedantic<br>
+- -Wextra<br>
+copyrights:<br>
+- Copyright (C) 2022 embedded brains GmbH (<a href="http://www.embedded-brains.de" rel="noreferrer" target="_blank">http://www.embedded-brains.de</a>)<br>
+cppflags: []<br>
+cxxflags: []<br>
+enabled-by: true<br>
+features: c cprogram<br>
+includes: []<br>
+ldflags: []<br>
+links: []<br>
+source:<br>
+- testsuites/sptests/spstdc17/init.c<br>
+stlib: []<br>
+target: testsuites/sptests/spstdc17.exe<br>
+type: build<br>
+use-after: []<br>
+use-before: []<br>
diff --git a/testsuites/sptests/spstdc17/init.c b/testsuites/sptests/spstdc17/init.c<br>
new file mode 100644<br>
index 0000000000..0a1a5571ac<br>
--- /dev/null<br>
+++ b/testsuites/sptests/spstdc17/init.c<br>
@@ -0,0 +1,57 @@<br>
+/*<br>
+ * SPDX-License-Identifier: BSD-2-Clause<br>
+ *<br>
+ * Copyright (C) 2022<br>
+ *<br>
+ * Redistribution and use in source and binary forms, with or without<br>
+ * modification, are permitted provided that the following conditions<br>
+ * are met:<br>
+ * 1. Redistributions of source code must retain the above copyright<br>
+ *    notice, this list of conditions and the following disclaimer.<br>
+ * 2. Redistributions in binary form must reproduce the above copyright<br>
+ *    notice, this list of conditions and the following disclaimer in the<br>
+ *    documentation and/or other materials provided with the distribution.<br>
+ *<br>
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"<br>
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE<br>
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE<br>
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE<br>
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR<br>
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF<br>
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS<br>
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN<br>
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)<br>
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE<br>
+ * POSSIBILITY OF SUCH DAMAGE.<br>
+ */<br>
+<br>
+#ifdef HAVE_CONFIG_H<br>
+#include "config.h"<br>
+#endif<br>
+<br>
+#include <rtems.h><br>
+<br>
+#include <tmacros.h><br>
+<br>
+const char rtems_test_name[] = "SPSTDC17";<br>
+<br>
+static rtems_task Init( rtems_task_argument arg )<br>
+{<br>
+  (void) arg;<br>
+<br>
+  TEST_BEGIN();<br>
+  TEST_END();<br>
+}<br>
+<br>
+#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER<br>
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER<br>
+<br>
+#define CONFIGURE_MAXIMUM_TASKS 1<br>
+<br>
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION<br>
+<br>
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE<br>
+<br>
+#define CONFIGURE_INIT<br>
+<br>
+#include <rtems/confdefs.h><br>
diff --git a/testsuites/sptests/spstdc17/spstdc17.doc b/testsuites/sptests/spstdc17/spstdc17.doc<br>
new file mode 100644<br>
index 0000000000..7f83fd9ad3<br>
--- /dev/null<br>
+++ b/testsuites/sptests/spstdc17/spstdc17.doc<br>
@@ -0,0 +1,12 @@<br>
+This file describes the directives and concepts tested by this test set.<br>
+<br>
+test set name: spstdc17<br>
+<br>
+directives:<br>
+<br>
+  - Header file <rtems.h><br>
+  - Header file <rtems/confdefs.h><br>
+<br>
+concepts:<br>
+<br>
+  - Ensure that the API header files are compatible with the C17 standard.<br>
-- <br>
2.35.3<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>