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)9void AutoDerivativeFunction<dim>::gradient_list (void) 10 { 11 } 12 template class AutoDerivativeFunction<1>; main()13int main() {} 14