1// { dg-do run }
2// Testcase for not evaluating template default args if they are
3// never used.
4
5struct X {
6 X(int) { }
7};
8
9template <class T>
10struct A {
11 void f (T t = T()) { }
12};
13
14int main ()
15{
16 A<X> a;
17 X x (1);
18 a.f (x);
19}
20