(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
deprecated-12.C
// 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" }
}