blob: 190266215a1eb2a917942249332ceadf23e7091c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// PR c++/26671
class A
{
public:
int first;
int second;
};
int &f()
{
A a; // { dg-warning "local" }
return a.second;
}
int &g()
{
int ar[42]; // { dg-warning "local" }
return ar[20];
}
|