OpenCores
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/] [builtin2.C] - Blame information for rev 308

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

Line No. Rev Author Line
1 301 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.