Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/20170111-1.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 rtl-optimization/79032 */ /* Reported by Daniel Cederman <cederman@gaisler.com> */ extern void abort (void); struct S { short a; long long b; short c; char d; unsigned short e; long *f; }; static long foo (struct S *s) __attribute__((noclone, noinline)); static long foo (struct S *s) { long a = 1; a /= s->e; s->f[a]--; return a; } int main (void) { long val = 1; struct S s = { 0, 0, 0, 0, 2, &val }; val = foo (&s); if (val != 0) abort (); return 0; }