summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/fixedpnt.adb
blob: 2e9988c33bbec4ea45c4eb6878410279326533a9 (plain)
1
2
3
4
5
6
7
8
9
10
--  { dg-do run }

procedure Fixedpnt is
   A : Duration := 1.0;
   B : Duration := Duration ((-1.0) * A);
begin   
   if B > 0.0 then 
      raise Constraint_Error;
   end if;
end;