summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/defarg8.C
blob: 61d819c7cdc25bc24a814f87e61c1a296290522d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/27094
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }

struct A
{
  ~A();
};

struct B : A
{
  B();
};

template<int> struct C
{
  C(const B& = B());
};

C<0> c;