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
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
uninit-pr74762.C
blob
ce1bc59773e86016e64a0a1c62fca095bd293ea4
1
/* PR c++/74762 - missing uninitialized warning (C++, parenthesized expr)
2
{ dg-do compile }
3
{ dg-options "-Wall" } */
4
5
struct tree2;
6
struct tree_vector2
7
{
8
tree2 *elts[1];
9
};
10
11
struct tree2
12
{
13
struct
14
{
15
tree_vector2 vector;
16
} u;
17
};
18
19
tree2 *
20
const_with_all_bytes_same (tree2 *val)
21
{
22
int i;
23
return ((val->u.vector.elts[i])); // { dg-warning "\\\[-Wuninitialized" }
24
}