aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/unify7.C
blob: fb7e6b02659fd35e4cb31b690f2352a1f95a1da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }

// 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 ();    // { dg-bogus "" } 

void g ()
{
  int (*pfn1) () = &foo;    // { dg-bogus "" } 
  void (*pfn2) () = &foo;   // { dg-bogus "" } 
}