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
foo()7 foo ()
8 {
9   return (int) ::strlen ("foo"); // { dg-error "" } undeclared
10 }
11 
12 int
bar()13 bar ()
14 {
15   return (int) std::strlen ("bar"); // { dg-error "" } undeclared
16 }
17