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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr46674.c] - Blame information for rev 750

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-alias "" } */
3
/* { dg-options "-O2" } */
4
 
5
#define LABEL3(pfx, x) # pfx x
6
#define LABEL2(pfx, x) LABEL3(pfx, x)
7
#define LABEL(x) LABEL2(__USER_LABEL_PREFIX__, x)
8
 
9
int yum;
10
void dessert (void) { ++yum; }
11
extern void jelly (void) __asm__ (LABEL ("jelly2")) __attribute__ ((alias ("dessert"), weak));
12
extern void wobbly (void) __attribute__ ((alias ("jelly2"), weak));
13
 
14
/* { dg-final { scan-assembler "wobbly" } } */
15
/* { dg-final { scan-assembler "jelly2" } } */

powered by: WebSVN 2.1.0

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