--  A string literal joined to a Wide_Wide_Character takes its type from the other operand
--  and the context, so a character beyond Latin-1 in it is not a String's error.
with Ada.Wide_Wide_Text_IO;
procedure Main is
   A : constant Wide_Wide_String := "Ωx" & Wide_Wide_Character'Val (16#3A9#);
begin
   Ada.Wide_Wide_Text_IO.Put_Line (A);
   for C of Wide_Wide_String'("Ωy" & Wide_Wide_Character'Val (16#3A9#)) loop
      Ada.Wide_Wide_Text_IO.Put (C);
   end loop;
end Main;
