OSDN Git Service

* trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gnat.dg / fixedpnt.adb
1 --  { dg-do run }
2
3 procedure Fixedpnt is
4    A : Duration := 1.0;
5    B : Duration := Duration ((-1.0) * A);
6 begin   
7    if B > 0.0 then 
8       raise Constraint_Error;
9    end if;
10 end;