Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/ipa-pta-3.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
/* { dg-do run } */ /* { dg-additional-options "-fipa-pta" } */ extern void abort (void); extern void *malloc (__SIZE_TYPE__); static int *p; static void __attribute__((noinline,noclone)) foo () { p = (int *) malloc (24); *p = 2; } int main() { foo (); if (*p != 2) abort (); return 0; }