URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 26 Feb 2000
|
// Contributed by Nathan Sidwell 26 Feb 2000
|
|
|
// template functions can be distinguished by return type alone. The return
|
// template functions can be distinguished by return type alone. The return
|
// type may also be a template parameter.
|
// type may also be a template parameter.
|
|
|
template C foo (); // { dg-bogus "" }
|
template C foo (); // { dg-bogus "" }
|
|
|
void g ()
|
void g ()
|
{
|
{
|
int (*pfn1) () = &foo; // { dg-bogus "" }
|
int (*pfn1) () = &foo; // { dg-bogus "" }
|
void (*pfn2) () = &foo; // { dg-bogus "" }
|
void (*pfn2) () = &foo; // { dg-bogus "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.