Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/alias-35.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 /* PR70128 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */ | |
4 | |
5 void foo (int b) | |
6 { | |
7 extern void bar (void); | |
8 extern void baz (void); | |
9 void *p; | |
10 if (b) | |
11 p = bar; | |
12 else | |
13 p = baz; | |
14 *(char *)p = 1; | |
15 } | |
16 | |
17 /* We should keep the store to the function locations. */ | |
18 /* { dg-final { scan-tree-dump " = 1;" "optimized" } } */ |