OSDN Git Service

* include/c_std/std_cmath.h: To prevent problems overloading
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / builtins7.C
1 // Test that built-in functions are recognized with a prototype.
2 // Origin: Roger Sayle  Mar 20, 2002
3 // Copyright (C) 2002 Free Software Foundation.
4 //
5 // Special g++ Options: -O2
6
7 extern "C" void link_error (void);
8
9 namespace std {
10 typedef __SIZE_TYPE__ size_t;
11 extern "C" size_t strlen (const char*);
12 }
13
14 int
15 main ()
16 {
17   if (std::strlen ("foo") != 3)
18     link_error ();
19   return 0;
20 }