* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr14814.c
blob60d9649a189aeec8e60675642b5d19e4988990ad
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-sra -fdump-tree-forwprop2" } */
4 struct YY {
5 double e[3]; };
7 static inline double *y(struct YY* this_1) { return &this_1->e[1]; }
9 struct XX {
10 struct YY v;
13 static inline struct YY direction (const struct XX* this_1) { return this_1->v;}
15 int foo(const struct XX* r) {
16 struct YY t = direction(r);
17 if (*y(&t) < 0.000001) return 0;
18 return 1;
21 /* { dg-final { scan-tree-dump-times "= &" 0 "forwprop2" } } */