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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [weak/] [weak-1.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
/* { dg-do compile } */
2
/* { dg-require-weak "" } */
3
/* { dg-options "-fno-common" } */
4
 
5
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?a" } } */
6
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?b" } } */
7
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?c" } } */
8
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?d" } } */
9
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?e" } } */
10
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?g" } } */
11
/* { dg-final { scan-assembler-not "weak\[^ \t\]*\[ \t\]_?i" } } */
12
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?j" } } */
13
 
14
#pragma weak a
15
int a;
16
 
17
int b;
18
#pragma weak b
19
 
20
#pragma weak c
21
extern int c;
22
int c;
23
 
24
extern int d;
25
#pragma weak d
26
int d;
27
 
28
#pragma weak e
29
void e(void) { }
30
 
31
#if 0
32
/* This permutation is illegal.  */
33
void f(void) { }
34
#pragma weak f
35
#endif
36
 
37
#pragma weak g
38
int g = 1;
39
 
40
#if 0
41
/* This permutation is illegal.  */
42
int h = 1;
43
#pragma weak h
44
#endif
45
 
46
#pragma weak i
47
extern int i;
48
 
49
#pragma weak j
50
extern int j;
51
int use_j() { return j; }

powered by: WebSVN 2.1.0

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