blob: bf06f986adc86d190b5831d8c1a37c1fb5633cd0 [file] [log] [blame]
# { dg-options "-fstropping=upper" } #
# The while-part shall not be elaborated if the iterator is exhausted. #
BEGIN STRING s = "abc", INT j := 0;
FOR i TO UPB s WHILE s[i] /= "x"
DO j +:= 1 OD;
ASSERT (j = 3)
END