blob: df5c76f3415903f00f8506f658c73cb58da24ddb [file] [log] [blame]
// PR c++/50308
void A( int ) __attribute__((deprecated));
namespace B {
struct C {};
void A(C) {}
}
int main ()
{
B::C x;
// ADL correctly identifies the non-deprecated B::A, but a warning about the
// global A is generated anyway
A( x ); // { dg-bogus "deprecated" }
}