Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr52979-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR middle-end/52979 */ /* { dg-require-effective-target int32plus } */ extern void abort (void); int c, d, e; void foo (void) { } struct __attribute__((packed)) S { int g : 31; int h : 6; }; static struct S b = { 1 }; struct S a = { 1 }; void bar (void) { a.h = 1; struct S f = { }; b = f; e = 0; if (d) c = a.g; } void baz (void) { bar (); a = b; } int main () { baz (); if (a.g) abort (); return 0; }