1 -- A basic test initially intended to check that
2 -- System.Task_Info.Number_Of_Processors yields sensible results on
3 -- both 32bit and 64bit Windows. Additional configurations where the
4 -- feature was verified to work can opt-in.
6 -- { dg-do run { target *-*-linux* *-*-mingw* *-*-solaris2.* } }
8 with System
.Multiprocessors
;
11 procedure System_Info1
is
12 Ncpus
: constant System
.Multiprocessors
.CPU
:=
13 System
.Multiprocessors
.Number_Of_CPUS
;
14 Nprocs
: constant Integer :=
15 System
.Task_Info
.Number_Of_Processors
;
17 use type System
.Multiprocessors
.CPU
;
19 if Nprocs
<= 0 or else Nprocs
> 1024 then
22 if Ncpus
<= 0 or else Ncpus
> 1024 then
25 if Nprocs
/= Integer (Ncpus
) then