repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
deprecated-7.C
blob
f564a1bb0a9d83a0e48937b6bcb12dbade263e39
1
// PR c++/56130
2
3
int g_nn;
4
int& g_n __attribute__((deprecated)) = g_nn;
5
6
void f()
7
{
8
int f_nn;
9
int& f_n __attribute__((deprecated)) = f_nn;
10
f_n = 1; // { dg-warning "'f_n' is deprecated" }
11
}
12
13
int main()
14
{
15
g_n = 1; // { dg-warning "'g_n' is deprecated" }
16
f();
17
}