Message ID | 20181203133514.GV12380@tucnak |
---|---|
State | New |
Headers | show |
Series | [committed] Add testcase from PR tree-optimization/71109 | expand |
--- gcc/testsuite/gcc.c-torture/compile/pr71109.c.jj 2018-12-03 14:28:42.678952260 +0100 +++ gcc/testsuite/gcc.c-torture/compile/pr71109.c 2018-12-03 14:28:38.928013113 +0100 @@ -0,0 +1,31 @@ +/* PR tree-optimization/71109 */ + +struct S { int g, h; signed char i; int j; signed char k; int l[4]; } a, c; +struct T { signed char g; } e; +int *b, d; +static void foo (); + +void +bar (void) +{ + while (d) + { + int k; + struct T f[3]; + foo (bar, a); + for (k = 0;; k++) + f[k] = e; + } +} + +static inline void +foo (int x, struct S y, struct T z) +{ + for (z.g = 2; z.g; z.g--) + { + c = a = y; + *b |= 6; + if (y.g) + break; + } +}