Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/alias-33.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do run } */ |
2 /* { dg-options "-O -fdump-tree-fre1-details" } */ | |
3 | |
4 int j; | |
5 int main () | |
6 { | |
7 int i = 1; | |
8 int **p; | |
9 j = 0; | |
10 p = __builtin_malloc (sizeof (int *)); | |
11 *p = &i; | |
12 p = __builtin_realloc (p, 2 * sizeof (int *)); | |
13 **p = 0; | |
14 if (i != 0) | |
15 __builtin_abort (); | |
16 return j; | |
17 } | |
18 | |
19 /* { dg-final { scan-tree-dump "Replaced j with 0" "fre1" } } */ |