3 procedure Loopvar
(S
: String) is
4 J
: Integer := S
'First;
7 pragma Loop_Variant
(J
); -- { dg-error "expect name \"Increases\"" }
8 pragma Loop_Variant
(Increasing
=> J
); -- { dg-error "expect name \"Increases\"" }
9 pragma Loop_Variant
(J
+ 1); -- { dg-error "expect name \"Increases\"" }
10 pragma Loop_Variant
(incr
=> -J
+ 1); -- { dg-error "expect name \"Increases\"" }
11 pragma Loop_Variant
(decr
=> -J
+ 1); -- { dg-error "expect name \"Decreases\"" }
12 pragma Loop_Variant
(foof
=> -J
+ 1); -- { dg-error "expect name \"Increases\", \"Decreases\", or \"Structural\"" }