* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / builtins8.C
blob9d12a45a7ce4342f76bc03aa7e269e8148fd5c1a
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 //
9 extern "C" void link_error (void);
11 namespace std {
12 typedef __SIZE_TYPE__ size_t;
13 extern "C" size_t strlen (const char*);
16 using namespace std;
18 int
19 main ()
21   if (strlen ("foo") != 3)
22     link_error ();
23   return 0;