begin
Bad_Map := Maps.To_Mapping(From => "aa", To => "yz");
Report.Failed("Exception not raised with repeated character");
+
+ if Report.Equal (Character'Pos('y'),
+ Character'Pos(Maps.Value(Bad_Map, 'a'))) then
+ -- Use the map to avoid optimization.
+ Report.Comment ("Shouldn't get here.");
+ end if;
exception
when Translation_Error => null; -- OK
when others =>
begin
Bad_Map := Maps.To_Mapping("abc", "yz");
Report.Failed("Exception not raised with unequal parameter lengths");
+
+ if Report.Equal (Character'Pos('y'),
+ Character'Pos(Maps.Value(Bad_Map, 'a'))) then
+ -- Use the map to avoid optimization.
+ Report.Comment ("Shouldn't get here.");
+ end if;
exception
when Translation_Error => null; -- OK
when others =>