Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/builtins8.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
9 extern "C" void link_error (void);
10
11 namespace std {
12 typedef __SIZE_TYPE__ size_t;
13 extern "C" size_t strlen (const char*);
14 }
15
16 using namespace std;
17
18 int
19 main ()
20 {
21 if (strlen ("foo") != 3)
22 link_error ();
23 return 0;
24 }
25