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