summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/arg5.C
blob: 87cbd0268238957ccc84d830f9ba04da14d71cae (plain)
1
2
3
4
5
6
7
8
9
// PR c++/30534
// { dg-do compile }

template<bool> struct A;

template<int> void foo()
{
  A<__builtin_constant_p(.)> a;  // { dg-error "template argument|invalid" }
}