OSDN Git Service

* include/c_std/std_cmath.h: To prevent problems overloading
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / builtins6.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 typedef __SIZE_TYPE__ size_t;
8 extern "C" size_t strlen (const char*);
9 extern "C" void link_error (void);
10
11 int
12 main ()
13 {
14   if (strlen ("foo") != 3)
15     link_error ();
16   return 0;
17 }
18