repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ6.C
blob
23ebfbe74f813350f0e9cf3b62658a30cfcfe8cc
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>, "");