diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2014-10-15 11:47:17 +0000 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2014-10-15 11:47:17 +0000 |
commit | ce5d70382839034a30e88904d826803f79a519f2 (patch) | |
tree | 59993d91938397721015a9ea0cd3493d0fc94156 /gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C | |
parent | e68953536c55973335f595adc0cbdbf6a121a644 (diff) |
Merge branches/gcc-4_9-branch rev 216130
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_9-branch@216256 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C b/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C new file mode 100644 index 00000000000..a0a2b75e30b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C @@ -0,0 +1,9 @@ +// { dg-do compile { target c++98_only } } +// { dg-options "" } + +// These C++14 features are allowed in C++98 in non-ANSI modes. +#ifndef __cpp_binary_literals +# error "__cpp_binary_literals" +#elif __cpp_binary_literals != 201304 +# error "__cpp_binary_literals != 201304" +#endif |