Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr52769.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/52769 */ |
2 /* { dg-do run } */ | |
3 /* { dg-options "-O3" } */ | |
4 | |
5 typedef struct | |
6 { | |
7 int should_be_zero; | |
8 char s[6]; | |
9 int x; | |
10 } foo_t; | |
11 | |
12 int | |
13 main (void) | |
14 { | |
15 volatile foo_t foo = { | |
16 .s = "123456", | |
17 .x = 2 | |
18 }; | |
19 | |
20 if (foo.should_be_zero != 0) | |
21 __builtin_abort (); | |
22 | |
23 return 0; | |
24 } |