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] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target powerpc*-apple-darwin* } } */
2
/* { dg-options "-S" } */
3
 
4
typedef void PF (void);
5
 
6
static void f(void) {
7
}
8
 
9
void f1(void) {
10
}
11
 
12
extern void f2(void) {
13
}
14
 
15
static void f3(void);
16
 
17
void pe(void)
18
{
19
}
20
 
21
PF* g (void) { f(); return f; }
22
PF* x (void) { return f1; }
23
PF* y (void) { f2(); return f2; }
24
PF* z (void) { return f3; }
25
PF* w (void) { pe(); return pe; }
26
 
27
int main()
28
{
29
        (*g())();
30
        (*x())();
31
        (*y())();
32
        (*z())();
33
        (*w())();
34
        return 0;
35
}
36
 
37
void f3(void) {
38
}
39
 
40
/* { 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.