Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr43560.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 tree-optimization/43560 */ struct S { int a, b; char c[10]; }; __attribute__ ((noinline)) void test (struct S *x) { while (x->b > 1 && x->c[x->b - 1] == '/') { x->b--; x->c[x->b] = '\0'; } } const struct S s = { 0, 0, "" }; int main () { struct S *p; asm ("" : "=r" (p) : "0" (&s)); test (p); return 0; }