Skip to content

Commit 27a0cfe

Browse files
author
jakub
committed
* g++.dg/cpp1z/cplusplus.C: Test that __cplusplus is equal to 201703L.
* g++.dg/cpp1z/cplusplus_1z.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253029 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent df2f15b commit 27a0cfe

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

gcc/testsuite/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-09-20 Jakub Jelinek <[email protected]>
2+
3+
* g++.dg/cpp1z/cplusplus.C: Test that __cplusplus is equal to 201703L.
4+
* g++.dg/cpp1z/cplusplus_1z.C: New test.
5+
16
2017-09-20 Sebastian Peryt <[email protected]>
27

38
* gcc.target/i386/builtin_target.c: Test knm.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// { dg-do compile }
22
// { dg-options "-std=c++17" }
33

4-
#if __cplusplus <= 201402L
5-
#error "__cplusplus <= 201402L"
4+
#if __cplusplus != 201703L
5+
#error "__cplusplus != 201703L"
66
#endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// { dg-do compile }
2+
// { dg-options "-std=c++1z" }
3+
4+
#if __cplusplus != 201703L
5+
#error "__cplusplus != 201703L"
6+
#endif

0 commit comments

Comments
 (0)