Home | History | Annotate | Line # | Download | only in non-ascii-utf-8
prog.adb revision 1.1.1.2
      1 --  Copyright 2022-2024 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 
     16 with Pack; use Pack;
     17 
     18 procedure Prog is
     19    -- This should be var_Ufc.
     20    VAR_ : Integer := FUNC_ (23);
     21    -- This should be var_W01b8, because with UTF-8, non-ASCII
     22    -- letters are upper-cased.
     23    VAR_ : Integer := FUNC_ (24);
     24    -- This should be var_WW00010401, because with UTF-8, non-ASCII
     25    -- letters are upper-cased.
     26    VAR_ : Integer := FUNC_ (25);
     27    -- This is the same name as the corresponding Latin 3 test,
     28    -- and helps show the peculiarity of the case folding rule.
     29    -- This winds up as var_W017b, the upper-case variant.
     30    VAR_ : Integer := FUNC_ (26);
     31 begin
     32    Do_Nothing (var_'Address); --  BREAK
     33    Do_Nothing (var_'Address);
     34    Do_Nothing (var_'Address);
     35    Do_Nothing (var_'Address);
     36 end Prog;
     37