1 // { dg-lto-do link }
2 // { dg-extra-ld-options "-fwhole-program" }
3 
4 template <int dim>
5 struct AutoDerivativeFunction {
6     virtual void gradient_list (void);
7 };
8 template <int dim>
gradient_list(void)9 void AutoDerivativeFunction<dim>::gradient_list (void)
10 {
11 }
12 template class AutoDerivativeFunction<1>;
main()13 int main() {}
14