OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [unify7.C] - Rev 816

Compare with Previous | Blame | View Log

// { 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 "" } 
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.