Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C Thu Feb 13 11:34:05 2020 +0900 @@ -236,20 +236,14 @@ # error "__has_include" #endif -// Quoted complex.h should find at least the bracket version (use operator). -#if __has_include__ "complex.h" -#else -# error "complex.h" -#endif - // Try known bracket header (use operator). -#if __has_include__(<complex>) +#if __has_include (<complex>) #else # error "<complex>" #endif // Define and use a macro to invoke the operator. -#define sluggo(TXT) __has_include__(TXT) +#define sluggo(TXT) __has_include(TXT) #if sluggo(<complex>) #else @@ -303,11 +297,11 @@ #if __has_include(<array>) # define STD_ARRAY 1 # include <array> - template<typename _Tp, size_t _Num> + template<typename _Tp, std::size_t _Num> using array = std::array<_Tp, _Num>; #elif __has_include(<tr1/array>) # define TR1_ARRAY 1 # include <tr1/array> - template<typename _Tp, size_t _Num> + template<typename _Tp, std::size_t _Num> typedef std::tr1::array<_Tp, _Num> array; #endif