Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // { dg-do run { target c++14 } } | 1 // { dg-do run { target c++14 } } |
2 // { dg-options -w } | |
2 | 3 |
3 #include <cassert> | 4 #include <cassert> |
4 | 5 |
5 template<bool, typename _Tp = void>struct enable_if {}; | 6 template<bool, typename _Tp = void>struct enable_if {}; |
6 template<typename _Tp> struct enable_if<true, _Tp> { typedef _Tp type; }; | 7 template<typename _Tp> struct enable_if<true, _Tp> { typedef _Tp type; }; |