summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/spec30.C
blob: 403b812f3e1fdbab55ca41855eaafdcc616ba302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile }

template<int N>
inline int
foo (int a)
{
  return a;
}

template<>
inline int
foo<0> (int a = 123) // { dg-error "default argument" }
{
  return a + 1;
}