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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
friend8.C
blob
8d2a2d35d54e295968bdfe7506844037e68f1dd1
1
// PR c++/100596
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
__attribute((deprecated)) friend void f(A); // part of A API, definition in .C
7
[[deprecated]] friend void f2(A); // { dg-warning "ignored" }
8
};
9
10
int main()
11
{
12
A a;
13
f(a); // { dg-warning "is deprecated" }
14
f2(a);
15
}