summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/default2.C
blob: 51534b8876d25d5e2bfc7be690d4d471783f3cf2 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/16829
// { dg-do compile }

template<typename T> void foo(T, int = 0, int) {}  // { dg-error "default" }

void bar()
{
  foo(0);
}