Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr38236.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
struct X { int i; }; int __attribute__((noinline)) foo (struct X *p, int *q, int a, int b) { struct X x, y; if (a) p = &x; if (b) q = &x.i; else q = &y.i; *q = 1; return p->i; } extern void abort (void); int main() { if (foo((void *)0, (void *)0, 1, 1) != 1) abort (); return 0; }