2007-10-27 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-15.c
blob9e409f082167350b0f86c6eb92319ceafb2a48f7
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-early-inlining -fdump-tree-salias-vops-details" } */
4 struct foo {
5 int a;
6 struct X {
7 int b[4];
8 } b;
9 } m;
10 static inline struct X *wrap(struct X *p) { return p; }
11 int test2(void)
13 struct X *p = wrap(&m.b);
14 /* Both memory references need to alias the same SFT. */
15 return p->b[3] - m.b.b[3];
18 /* { dg-final { scan-tree-dump "SFT.1 created for var m offset 128" "salias" } } */
19 /* { dg-final { scan-tree-dump-times "VUSE <SFT.1_" 2 "salias" } } */
20 /* { dg-final { cleanup-tree-dump "salias" } } */