summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/builtin1.C
blob: 9947c85bf799b2ea5b51ebda5ff1c964db6dc62f (plain)
1
2
3
4
5
6
7
8
9
10
// Test whether alternate 'asm' name is applied correctly to
// builtin in global namespace

// { dg-do compile }
// { dg-options "" }
// { dg-final { scan-assembler "fancy_printf" } }

extern "C" int printf(const char*, ...) __asm("_fancy_printf");

void foo() { printf("abc"); }