Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ6.C

raw
1 // { dg-do compile { target c++14 } }
2
3 template<typename T>
4 constexpr bool Class = __is_class(T);
5
6 template<typename T>
7 constexpr bool Test = Class<T>;
8
9 struct S { };
10
11 static_assert(!Test<int>, "");
12 static_assert(Test<S>, "");