URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/20961
|
// PR c++/20961
|
// Test for #pragma weak and __attribute__((weak)) being used together.
|
// Test for #pragma weak and __attribute__((weak)) being used together.
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-require-weak "" }
|
// { dg-require-weak "" }
|
// { dg-options "" }
|
// { dg-options "" }
|
|
|
// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
|
// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
|
|
|
int foo ();
|
int foo ();
|
#pragma weak foo
|
#pragma weak foo
|
|
|
int
|
int
|
__attribute__((weak))
|
__attribute__((weak))
|
foo ()
|
foo ()
|
{
|
{
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.