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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [attr-ifunc-4.c] - Blame information for rev 713

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run }  */
2
/* { dg-require-ifunc "" } */
3
/* { dg-options "" } */
4
 
5
#include <stdio.h>
6
 
7
static void *implementation (void)
8
{
9
  printf ("'ere I am JH\n");
10
  return 0;
11
}
12
 
13
static void *resolver (void)
14
{
15
  return (void *)implementation;
16
}
17
 
18
static int magic (void) __attribute__ ((ifunc ("resolver")));
19
 
20
int main ()
21
{
22
  return magic () != 0;
23
}

powered by: WebSVN 2.1.0

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