Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / builtin2.C
blob4649737c3d00750febc372def8e2b386bd3f9a95
1 /* { dg-do compile } */
3 /* PR c++/21087 */
5 /* We used to overload the template function with the built-in
6    declaration, instead of replacing it as we should, and then barf at
7    the using decl because of a test that none of the overload set
8    members were anticipated built-ins.  */
10 extern "C" signed int toupper(signed int __c) throw();
11 namespace std
13   template< typename a > a toupper(a,int){}
14   using ::toupper;
17 void f () {
18   std::toupper((signed int)'a');