blob: 6afb823884c0bfc19281cce0b2ed15c618c1acd2 [file] [log] [blame]
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Feb 2000 <nathan@codesourcery.com>
// template functions can be distinguished by return type alone. The return
// type may also be a template parameter.
template <typename C> C foo (); // gets bogus error
void g ()
{
int (*pfn1) () = &foo; // gets bogus error
void (*pfn2) () = &foo; // gets bogus error
}