FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / builtins6.C
blob347f4adda6d29149b826e8edb835502596e67044
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
7 typedef __SIZE_TYPE__ size_t;
8 extern "C" size_t strlen (const char*);
9 extern "C" void link_error (void);
11 int
12 main ()
14   if (strlen ("foo") != 3)
15     link_error ();
16   return 0;