Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / ext / builtin3.C
blob001d5f784d27d7f028094f756a524daffde704bd
1 // Verify that declaring builtin in namespace std doesn't give us
2 // declaration in global namespace
4 // { dg-do compile }
5 // { dg-options "" }
7 namespace std {
8 extern "C" int printf(char*, ...); // { dg-message "std::printf" }
11 void foo() {
12   printf("abc");                // { dg-error "not declared" }
13   // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 12 }