[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / builtin3.C
blob6becaa055e6480338f5d06aebffb48c5869f33dc
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 "3:'printf' was not declared" }
13   // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } .-1 }