repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
deprecated-12.C
blob
df5c76f3415903f00f8506f658c73cb58da24ddb
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
}