blob: ce1bc59773e86016e64a0a1c62fca095bd293ea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* PR c++/74762 - missing uninitialized warning (C++, parenthesized expr)
{ dg-do compile }
{ dg-options "-Wall" } */
struct tree2;
struct tree_vector2
{
tree2 *elts[1];
};
struct tree2
{
struct
{
tree_vector2 vector;
} u;
};
tree2 *
const_with_all_bytes_same (tree2 *val)
{
int i;
return ((val->u.vector.elts[i])); // { dg-warning "\\\[-Wuninitialized" }
}
|