URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do run }
|
// { dg-do run }
|
// Compile with -S, there should be no references to
|
// Compile with -S, there should be no references to
|
// LTRAMP in the output.
|
// LTRAMP in the output.
|
|
|
extern "C" int printf (const char *, ...);
|
extern "C" int printf (const char *, ...);
|
|
|
void
|
void
|
sub2 (void (*func) ())
|
sub2 (void (*func) ())
|
{
|
{
|
(*func) ();
|
(*func) ();
|
}
|
}
|
|
|
int
|
int
|
main(void)
|
main(void)
|
{
|
{
|
extern void sub (void);
|
extern void sub (void);
|
|
|
sub2 (sub);
|
sub2 (sub);
|
}
|
}
|
|
|
void
|
void
|
sub (void)
|
sub (void)
|
{
|
{
|
printf ("hello world\n");
|
printf ("hello world\n");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.