Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr57344-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR middle-end/57344 */ /* { dg-require-effective-target int32plus } */ struct __attribute__((packed)) S { int a : 27; #if __SIZEOF_INT__ * __CHAR_BIT__ >= 32 int b : 22; #else int b : 13; #endif char c; int : 0; } s[2]; int i; __attribute__((noinline, noclone)) void foo (int x) { if (x != -3161) __builtin_abort (); asm volatile ("" : : : "memory"); } int main () { struct S t = { 0, -3161L }; s[1] = t; for (; i < 1; i++) foo (s[1].b); return 0; }