Debian Codegraph @

gcc/testsuite/g++.dg/ext/builtin2.C

raw
1 // 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"); } }