blob: f17e98aed801dee6e56e02c952da3515af0f495a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Verify that points-to information is handled properly for PTR + OFFSET
pointer arithmetics. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-alias-vops" } */
char buf[4], *q;
int foo (int i)
{
char c, *p;
q = &c;
p = buf;
if (i)
p = p + 3;
else
p = p + 2;
*p = 6;
c = 8;
return *p;
}
/* { dg-final { scan-tree-dump-not "VUSE <c" "alias" } } */
/* { dg-final { cleanup-tree-dump "alias" } } */
|