diff options
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/20140212-1.c')
-rw-r--r-- | SingleSource/Regression/C/gcc-c-torture/execute/20140212-1.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/20140212-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/20140212-1.c new file mode 100644 index 00000000..8f1f84f3 --- /dev/null +++ b/SingleSource/Regression/C/gcc-c-torture/execute/20140212-1.c @@ -0,0 +1,37 @@ +/* PR rtl-optimization/60116 */ +/* Reported by Zhendong Su <su@cs.ucdavis.edu> */ + +extern void abort (void); + +int a, b, c, d = 1, e, f = 1, h, i, k; +char g, j; + +void +fn1 (void) +{ + int l; + e = 0; + c = 0; + for (;;) + { + k = a && b; + j = k * 54; + g = j * 147; + l = ~g + (long long) e && 1; + if (d) + c = l; + else + h = i = l * 9UL; + if (f) + return; + } +} + +int +main (void) +{ + fn1 (); + if (c != 1) + abort (); + return 0; +} |