aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/algol68/execute/formula-2.a68
blob: 5b09f3d870f93785e7e56e2e3681e4ad1b97b257 (plain)
1
2
3
4
5
6
7
# { dg-options "-fstropping=upper" }  #
BEGIN INT i;
      PROC side = INT: (i := 1; i := 2; i);
      INT res = side + side;
      # Can be either due to collateral elaboration in the formula above.  #
      ASSERT (res = 3 OR res = 4)
END