Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / ext / builtin1.C
blob9947c85bf799b2ea5b51ebda5ff1c964db6dc62f
1 // Test whether alternate 'asm' name is applied correctly to
2 // builtin in global namespace
4 // { dg-do compile }
5 // { dg-options "" }
6 // { dg-final { scan-assembler "fancy_printf" } }
8 extern "C" int printf(const char*, ...) __asm("_fancy_printf");
10 void foo() { printf("abc"); }