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
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
return-reference2.C
blob
190266215a1eb2a917942249332ceadf23e7091c
1
// PR c++/26671
2
3
class A
4
{
5
public:
6
int first;
7
int second;
8
9
};
10
11
int &f()
12
{
13
A a; // { dg-warning "local" }
14
return a.second;
15
}
16
17
int &g()
18
{
19
int ar[42]; // { dg-warning "local" }
20
return ar[20];
21
}