Debian Codegraph @

gcc/testsuite/g++.dg/warn/deprecated-12.C

raw
1 // PR c++/50308
2
3 void A( int ) __attribute__((deprecated));
4
5 namespace B {
6
7 struct C {};
8
9 void A(C) {}
10
11 }
12
13 int main ()
14 {
15 B::C x;
16
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" }
20 }