Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/analyzer/pr94099.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 /* { dg-additional-options "-O1" } */ | |
2 | |
3 struct cg { | |
4 int hk; | |
5 int *bg; | |
6 }; | |
7 | |
8 union vb { | |
9 struct cg gk; | |
10 }; | |
11 | |
12 void | |
13 l3 (union vb *); | |
14 | |
15 void | |
16 pl (void) | |
17 { | |
18 union vb th = { 0, }; | |
19 int sc; | |
20 | |
21 for (sc = 0; sc < 1; ++sc) | |
22 { | |
23 th.gk.hk = 0; | |
24 th.gk.bg[sc] = 0; /* { dg-warning "uninitialized" "uninit-warning-removed" { xfail *-*-* } } */ | |
25 l3 (&th); | |
26 } | |
27 } |