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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [non-lazy-ptr-test.c] - Rev 856

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile { target powerpc*-apple-darwin* } } */
/* { dg-options "-S" } */
 
typedef void PF (void);
 
static void f(void) {
}
 
void f1(void) {
}
 
extern void f2(void) {
}
 
static void f3(void);
 
void pe(void)
{
}
 
PF* g (void) { f(); return f; }
PF* x (void) { return f1; }
PF* y (void) { f2(); return f2; }
PF* z (void) { return f3; }
PF* w (void) { pe(); return pe; }
 
int main()
{
	(*g())();
	(*x())();
	(*y())();
	(*z())();
	(*w())();
	return 0;
}
 
void f3(void) {
}
 
/* { dg-final { scan-assembler-not "non_lazy_ptr" } } */
 

Go to most recent revision | 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.