Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / ext / builtin2.C
blobffa25285b59c5a5721555a64c01adbec0d4724bf
1 // PR c++/18514
2 // Test whether alternate 'asm' name is applied correctly to
3 // builtin imported into namespace std.
5 // { dg-do compile }
6 // { dg-options "" }
7 // { dg-final { scan-assembler "fancy_printf" } }
9 extern "C" int printf(const char*, ...) __asm("_fancy_printf");
11 namespace std { using ::printf; }
13 namespace std { void foo() { printf("abc"); } }