2 // { dg-do assemble { target c++14 } }
5 constexpr bool foo = false;
7 constexpr bool foo<int> = true;
8 template <class T, int N>
9 constexpr bool foo<T[N]> = foo<T>;
11 static_assert(foo<int>, "");
12 static_assert(!foo<double>, "");
13 static_assert(foo<int[3]>, "");
14 static_assert(!foo<double[3]>, "");
15 static_assert(foo<int[2][5][3]>, "");
16 static_assert(!foo<double[2][5][3]>, "");