* g++.dg/cpp1z/cplusplus.C: Test that __cplusplus is equal to 201703L.
* g++.dg/cpp1z/cplusplus_1z.C: New test.
From-SVN: r253029
+2017-09-20 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.dg/cpp1z/cplusplus.C: Test that __cplusplus is equal to 201703L.
+ * g++.dg/cpp1z/cplusplus_1z.C: New test.
+
2017-09-20 Sebastian Peryt <sebastian.peryt@intel.com>
* gcc.target/i386/builtin_target.c: Test knm.
// { dg-do compile }
// { dg-options "-std=c++17" }
-#if __cplusplus <= 201402L
-#error "__cplusplus <= 201402L"
+#if __cplusplus != 201703L
+#error "__cplusplus != 201703L"
#endif
--- /dev/null
+// { dg-do compile }
+// { dg-options "-std=c++1z" }
+
+#if __cplusplus != 201703L
+#error "__cplusplus != 201703L"
+#endif