prog.adb 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. -- Copyright 2022 Free Software Foundation, Inc.
  2. --
  3. -- This program is free software; you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation; either version 3 of the License, or
  6. -- (at your option) any later version.
  7. --
  8. -- This program is distributed in the hope that it will be useful,
  9. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. -- GNU General Public License for more details.
  12. --
  13. -- You should have received a copy of the GNU General Public License
  14. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. with Pack; use Pack;
  16. procedure Prog is
  17. -- This should be var_Ufc.
  18. VAR_Ü : Integer := FUNC_Ü (23);
  19. -- This should be var_W01b8, because with UTF-8, non-ASCII
  20. -- letters are upper-cased.
  21. VAR_Ƹ : Integer := FUNC_Ƹ (24);
  22. -- This should be var_WW00010401, because with UTF-8, non-ASCII
  23. -- letters are upper-cased.
  24. VAR_𐐁 : Integer := FUNC_𐐁 (25);
  25. -- This is the same name as the corresponding Latin 3 test,
  26. -- and helps show the peculiarity of the case folding rule.
  27. -- This winds up as var_W017b, the upper-case variant.
  28. VAR_Ż : Integer := FUNC_Ż (26);
  29. begin
  30. Do_Nothing (var_ü'Address); -- BREAK
  31. Do_Nothing (var_ƹ'Address);
  32. Do_Nothing (var_𐐩'Address);
  33. Do_Nothing (var_ż'Address);
  34. end Prog;