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