Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / builtins7.C
blob4d664c1a75c0f48f8474e7b9b5ca97f5e3934228
1 // { dg-do run  }
2 // { dg-options "-O2" }
3 // Test that built-in functions are recognized with a prototype.
4 // Origin: Roger Sayle  Mar 20, 2002
5 // Copyright (C) 2002 Free Software Foundation.
6 //
8 extern "C" void link_error (void);
10 namespace std {
11 typedef __SIZE_TYPE__ size_t;
12 extern "C" size_t strlen (const char*);
15 int
16 main ()
18   if (std::strlen ("foo") != 3)
19     link_error ();
20   return 0;