]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c
tree-ssa.texi: Remove references to VDEF and add descriptions of V_MAY_DEF and V_MUST...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20040517-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-ssa-vops" } */
3 int a;
4
5 extern void __attribute__ ((malloc)) *foo ();
6
7 void bar (void)
8 {
9 a = 1;
10 foo ();
11 if (a)
12 abort ();
13 }
14
15 /* We used to treat malloc functions like pure and const functions, but
16 malloc functions may clobber global memory. Only the function result
17 does not alias any other pointer.
18 Hence, we must have a VDEF for a before and after the call to foo(). */
19 /* { dg-final { scan-tree-dump-times "V_MAY_DEF" 1 "ssa"} } */
20
This page took 0.036624 seconds and 5 git commands to generate.