gcc/testsuite/gnat.dg/constant4_pkg.ads
raw| 1 | with Ada.Command_Line; use Ada.Command_Line; |
| 2 | with System.Multiprocessors; use System.Multiprocessors; |
| 3 | |
| 4 | package Constant4_Pkg is |
| 5 | |
| 6 | Max_CPUs : constant CPU := (if Argument_Count < 2 then Number_Of_CPUs |
| 7 | else CPU'Value (Argument (2))); |
| 8 | |
| 9 | subtype Worker_Id is CPU range 1 .. Max_CPUs; |
| 10 | |
| 11 | type Counter is range 0 .. 10**18; |
| 12 | |
| 13 | Steals : array (Worker_Id) of Counter := (others => 0); |
| 14 | |
| 15 | end Constant4_Pkg; |