Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/store_merging_12.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-O2 -Wall" } */ | |
3 | |
4 #if __SIZEOF_INT__ == 2 | |
5 #define int long | |
6 #endif | |
7 | |
8 struct S { unsigned int b1:1, b2:1, b3:1, b4:1, b5:1, b6:27; }; | |
9 void bar (struct S *); | |
10 void foo (int x) | |
11 { | |
12 struct S s; | |
13 s.b2 = 1; s.b3 = 0; s.b4 = 1; s.b5 = 0; s.b1 = x; s.b6 = x; /* { dg-bogus "is used uninitialized in this function" } */ | |
14 bar (&s); | |
15 } |