Add documentation for musttail attribute
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr71875.C
blob4d317966ceaf270745a16331129e53e803b20060
1 // PR c++/71875
2 // { dg-do link { target c++14 } }
4 template <typename T>
5 constexpr bool IsMatrix = false;
7 template<typename TElem>
8 class Matrix {};
10 template <typename TElem>
11 constexpr bool IsMatrix<Matrix<TElem>> = true;
13 template<typename TNestVec>
14 class RowVecExpMatrix;
16 template <typename TNestVec>
17 constexpr bool IsMatrix<RowVecExpMatrix<TNestVec>> = true;
19 int
20 main ()
22   static_assert (IsMatrix<RowVecExpMatrix<Matrix<int>>>, "Matrix check error");
23   static_assert (IsMatrix<Matrix<int>>, "Input type is not a matrix");