Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 // Test that built-in functions aren't recognized without a prototype.
3 // Origin: Roger Sayle Mar 20, 2002
4 // Copyright (C) 2002 Free Software Foundation.
5
6 int
7 foo ()
8 {
9 return (int) ::strlen ("foo"); // { dg-error "" } undeclared
10 }
11
12 int
13 bar ()
14 {
15 return (int) std::strlen ("bar"); // { dg-error "" } undeclared
16 }