Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ6.C
blob: 23ebfbe74f813350f0e9cf3b62658a30cfcfe8cc [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
template
<
typename
T
>
constexpr
bool
Class
=
__is_class
(
T
);
template
<
typename
T
>
constexpr
bool
Test
=
Class
<
T
>;
struct
S
{
};
static_assert
(!
Test
<int>
,
""
);
static_assert
(
Test
<
S
>,
""
);