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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [attr-alias-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR 19031 */
2
/* { dg-do link } */
3
/* { dg-require-alias "" } */
4
/* { dg-options "-funit-at-a-time" } */
5
 
6
static int f1 (void) { return 0; }
7
extern int g1 (void) __attribute__((__alias__("f1")));
8
 
9
#define STR(x) STR1(__USER_LABEL_PREFIX__, x)
10
#define STR1(x,y) STR2(x, y)
11
#define STR2(x,y) #x #y
12
 
13
static int f2 (void) __asm__(STR(a2));
14
static int f2 (void) { return 0; }
15
extern int g2 (void) __attribute__((__alias__("a2")));
16
 
17
int main ()
18
{
19
  return g1() + g2();
20
}

powered by: WebSVN 2.1.0

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