~ubuntu-branches/ubuntu/raring/adacontrol/raring

« back to all changes in this revision

Viewing changes to test/t_style-positional_association.adb

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta
  • Date: 2010-03-13 14:01:37 UTC
  • mfrom: (1.1.5 upstream) (9.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100313140137-50ia1bbb5qld97fd
Tags: 1.12~b1-1
New upstream beta version.  Really closes: #566061 even on i386.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
   begin
26
26
      null;
27
27
   end Nproc;
 
28
   procedure Nproc ( Y : in Integer ; Z : in Integer; T : in Float) is
 
29
   begin
 
30
      null;
 
31
   end Nproc;
28
32
   Variable : Integer;
29
33
   RecordI : Arecord;
30
34
   RecordIT : Trecord;
91
95
 
92
96
begin
93
97
   Variable := Nothing (X => 1);
94
 
   Variable := Nothing (1);                            -- OK
 
98
   Variable := Nothing (1);                           -- OK
95
99
   Nproc ( Y => Variable, Z => 1);
96
 
   Nproc (0, 1);                                       -- Positional_Association x2
 
100
   Nproc (0, 1);                                      -- Positional_Association x2
 
101
   Nproc (0, 1, 1.0);                                 -- OK (exception to the rule)
97
102
   RecordI := (A => 1, B => 0, C => 1);
98
 
   RecordI := (1, 0, 1);                                -- Positional_Association x3
 
103
   RecordI := (1, 0, 1);                              -- Positional_Association x3
99
104
   RecordIT := Trecord'(D => 1);
100
105
   RecordITE := (RecordIT with E => 1);
101
106
   RecordITE := (RecordIT with 1);                    -- OK
102
107
   Tab := (1, 0, 1, 0, 1);                            -- Positional_Association x5
103
108
   Tab := (1 => 0, 2 => 1, 3 => 0, 4 => 1, 5 => 0);   -- Exposed_Literal (Integer) x4
104
 
   Taske.EntryCall (1);                                -- OK
105
 
   Taske.EntryCall (I => 1);                           -- OK
106
 
   Taske.EntryCall (1, 2);                             -- Positional_Association x2, Exposed_Literal (Integer)
107
 
   Taske.EntryCall (I => 1, J => 1);                   -- OK
 
109
   Taske.EntryCall (1);                               -- OK
 
110
   Taske.EntryCall (I => 1);                          -- OK
 
111
   Taske.EntryCall (1, 2);                            -- Positional_Association x2, Exposed_Literal (Integer)
 
112
   Taske.EntryCall (I => 1, J => 1);                  -- OK
108
113
 
109
 
   Tab (1) := Tab (1) + 1;                             -- OK
110
 
   Tab (1) := "+" (Tab (1), 1);                        -- OK (because not_operator)
 
114
   Tab (1) := Tab (1) + 1;                            -- OK
 
115
   Tab (1) := "+" (Tab (1), 1);                       -- OK (because not_operator)
111
116
end Positional_Association;