1// { dg-do assemble  }
2
3// Copyright (C) 2000 Free Software Foundation, Inc.
4// Contributed by Nathan Sidwell 26 Feb 2000 <nathan@codesourcery.com>
5
6// template functions can be distinguished by return type alone. The return
7// type may also be a template parameter.
8
9template <typename C> C foo ();    // { dg-bogus "" }
10
11void g ()
12{
13  int (*pfn1) () = &foo;    // { dg-bogus "" }
14  void (*pfn2) () = &foo;   // { dg-bogus "" }
15}
16