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