Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/builtins7.C

raw
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 //
7
8 extern "C" void link_error (void);
9
10 namespace std {
11 typedef __SIZE_TYPE__ size_t;
12 extern "C" size_t strlen (const char*);
13 }
14
15 int
16 main ()
17 {
18 if (std::strlen ("foo") != 3)
19 link_error ();
20 return 0;
21 }