PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / deprecated-12.C
blobdf5c76f3415903f00f8506f658c73cb58da24ddb
1 // PR c++/50308
3 void A( int ) __attribute__((deprecated));
5 namespace B {
7   struct C {};
9   void A(C) {}
13 int main ()
15   B::C x;
17   // ADL correctly identifies the non-deprecated B::A, but a warning about the
18   // global A is generated anyway
19   A( x );                       // { dg-bogus "deprecated" }