☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
arg5.C
☽
☼
gcc/testsuite/g++.dg/template/arg5.C
code
plain
raw
1
// PR c++/30534
2
// { dg-do compile }
3
4
template<bool> struct A;
5
6
template<int> void foo()
7
{
8
A<__builtin_constant_p(.)> a; // { dg-error "template argument|invalid" }
9
}