aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/c17.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/c17.c')
-rw-r--r--test/Preprocessor/c17.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/c17.c b/test/Preprocessor/c17.c
new file mode 100644
index 000000000000..c610e84f9830
--- /dev/null
+++ b/test/Preprocessor/c17.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c17 %s
+// expected-no-diagnostics
+
+_Static_assert(__STDC_VERSION__ == 201710L, "Incorrect __STDC_VERSION__");