Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/pr77648-2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run } */ struct S { int *p; int *q; }; int **__attribute__((noinline,noclone,const)) foo (struct S *s) { return &s->q; } int main() { struct S s; int i = 1, j = 2; int **x; s.p = &i; s.q = &j; x = foo (&s); **x = 7; if (j != 7) __builtin_abort (); return 0; }