New test case.

From-SVN: r21140
This commit is contained in:
Martin v. Löwis 1998-07-14 14:18:34 +00:00
parent 2644deec19
commit 0650ddf440

View File

@ -0,0 +1,15 @@
// To find function pointers in Koenig lookup is ok as long as we only find one.
namespace A{
void foo(); // ERROR -
struct X{};
void (*bar)(X*)=0;
}
using A::X;
void (*foo)(X*)=0; // ERROR -
void g()
{
foo(new X); // ERROR - both objects and functions found
bar(new X); // ok
}