OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [specs/] [discr_record_constant.ads] - Blame information for rev 696

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do compile }
2
 
3
pragma Restrictions (No_Implicit_Heap_Allocations);
4
 
5
package Discr_Record_Constant is
6
 
7
   type T (Big : Boolean := False) is record
8
      case Big is
9
         when True =>
10
            Content : Integer;
11
         when False =>
12
            null;
13
       end case;
14
    end record;
15
 
16
    D : constant T := (True, 0);
17
 
18
    Var :          T := D;    --  OK, maximum size
19
    Con : constant T := D;    --  Violation of restriction
20
    Ter : constant T := Con;  --  Violation of restriction
21
 
22
end Discr_Record_Constant;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.