URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [weak/] [weak-1.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?a" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?b" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?c" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?d" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?e" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?g" } } */ /* { dg-final { scan-assembler-not "weak\[^ \t\]*\[ \t\]_?i" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?j" } } */ #pragma weak a int a; int b; #pragma weak b #pragma weak c extern int c; int c; extern int d; #pragma weak d int d; #pragma weak e void e(void) { } #if 0 /* This permutation is illegal. */ void f(void) { } #pragma weak f #endif #pragma weak g int g = 1; #if 0 /* This permutation is illegal. */ int h = 1; #pragma weak h #endif #pragma weak i extern int i; #pragma weak j extern int j; int use_j() { return j; }