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