Author: aaronballman
Date: Thu Dec  7 18:39:26 2017
New Revision: 320131

URL: http://llvm.org/viewvc/llvm-project?rev=320131&view=rev
Log:
Add a test that the __STDC_VERSION__ macro reports the correct value for 
-std=c17.

Added:
    cfe/trunk/test/Preprocessor/c17.c

Added: cfe/trunk/test/Preprocessor/c17.c
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/c17.c?rev=320131&view=auto
==============================================================================
--- cfe/trunk/test/Preprocessor/c17.c (added)
+++ cfe/trunk/test/Preprocessor/c17.c Thu Dec  7 18:39:26 2017
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c17 %s
+// expected-no-diagnostics
+
+_Static_assert(__STDC_VERSION__ == 201710L, "Incorrect __STDC_VERSION__");


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to