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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [builtin2.C] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/18514
2
// Test whether alternate 'asm' name is applied correctly to
3
// builtin imported into namespace std.
4
 
5
// { dg-do compile }
6
// { dg-options "" }
7
// { dg-final { scan-assembler "fancy_printf" } }
8
 
9
extern "C" int printf(const char*, ...) __asm("_fancy_printf");
10
 
11
namespace std { using ::printf; }
12
 
13
namespace std { void foo() { printf("abc"); } }

powered by: WebSVN 2.1.0

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