URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [weak3.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/20961
// Test for #pragma weak and __attribute__((weak)) being used together.
// { dg-do compile }
// { dg-require-weak "" }
// { dg-options "" }
// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
int foo ();
#pragma weak foo
int
__attribute__((weak))
foo ()
{
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log