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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [weak/] [weak-9.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-require-weak "" } */
3
/* { dg-require-alias "" } */
4
/* { dg-options "-fno-common" } */
5
 
6
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f1" } } */
7
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f2" } } */
8
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f3" } } */
9
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f4" } } */
10
 
11
void notf1() { }
12
void notf2() { }
13
void notf3() { }
14
void notf4() { }
15
 
16
void f1() __attribute__((weak, alias("notf1")));
17
void f2() __attribute__((alias("notf2"), weak));
18
 
19
#pragma weak f3=notf3
20
void f3();
21
 
22
void f4();
23
#pragma weak f4=notf4

powered by: WebSVN 2.1.0

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