Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/pr94947-1.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-additional-sources "pr94947-2.c" } */ /* { dg-additional-options "-fipa-pta -flto-partition=1to1" } */ extern void abort (); extern void baz (); extern void (*baz_call)(); static int *p; static void foo () { if (*p != 1) abort (); } int main() { int x = 1; p = &x; baz_call = foo; baz (); return 0; }