URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// Test whether alternate 'asm' name is applied correctly to
|
// Test whether alternate 'asm' name is applied correctly to
|
// builtin in global namespace
|
// builtin in global namespace
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "" }
|
// { dg-options "" }
|
// { dg-final { scan-assembler "fancy_printf" } }
|
// { dg-final { scan-assembler "fancy_printf" } }
|
|
|
extern "C" int printf(const char*, ...) __asm("_fancy_printf");
|
extern "C" int printf(const char*, ...) __asm("_fancy_printf");
|
|
|
void foo() { printf("abc"); }
|
void foo() { printf("abc"); }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.