aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/arg5.C
blob: 3d67143b12d672b3db64e0ca58cf04febffdf58d (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" }
}