diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/builtin1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/builtin1.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/builtin1.C b/gcc/testsuite/g++.dg/ext/builtin1.C new file mode 100644 index 00000000000..8a53fd6a315 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/builtin1.C @@ -0,0 +1,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(char*, ...) __asm("_fancy_printf"); + +void foo() { printf("abc"); } |