OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr27758.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR target/27758 */
2
/* { dg-do run { target fpic } } */
3
/* { dg-options "-O0 -fpic" } */
4
 
5
typedef int (*fn) (void);
6
 
7
static inline int
8
foo (void)
9
{
10
  return 1;
11
}
12
 
13
fn
14
test (void)
15
{
16
  return foo;
17
}
18
 
19
int
20
main (void)
21
{
22
  fn f = test ();
23
  return f () != 1;
24
}

powered by: WebSVN 2.1.0

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