URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [sizetype2.adb] - Rev 704
Go to most recent revision | Compare with Previous | Blame | View Log
-- { dg-do run } procedure Sizetype2 is function Ident_Int (X : Integer) return Integer is begin return X; end; type A is array (Integer range <>) of Boolean; subtype T1 is A (Ident_Int (- 6) .. Ident_Int (Integer'Last - 4)); subtype T2 is A (- 6 .. Ident_Int (Integer'Last - 4)); subtype T3 is A (Ident_Int (- 6) .. Integer'Last - 4); begin if T1'Size /= 17179869200 then raise Program_Error; end if; if T2'Size /= 17179869200 then raise Program_Error; end if; if T3'Size /= 17179869200 then raise Program_Error; end if; end;
Go to most recent revision | Compare with Previous | Blame | View Log