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] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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