1// PR c++/34089
2// { dg-do compile }
3// { dg-options "" }
4
5template<typename F> void foo () { } // { dg-prune-output "previous" }
6template<typename F> struct foo<F> { };	// { dg-error "template" }
7