annotate gcc/testsuite/gnat.dg/pack11.adb @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 -- { dg-do run }
kono
parents:
diff changeset
2 -- { dg-options "-gnatws" }
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 with System;
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 procedure Pack11 is
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 type R1 is record
kono
parents:
diff changeset
9 A1, A2, A3 : System.Address;
kono
parents:
diff changeset
10 end record;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 type R2 is record
kono
parents:
diff changeset
13 C : Character;
kono
parents:
diff changeset
14 R : R1;
kono
parents:
diff changeset
15 end record;
kono
parents:
diff changeset
16 pragma Pack (R2);
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 procedure Dummy (R : R1) is begin null; end;
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 procedure Init (X : R2) is
kono
parents:
diff changeset
21 begin
kono
parents:
diff changeset
22 Dummy (X.R);
kono
parents:
diff changeset
23 end;
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 My_R2 : R2;
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 begin
kono
parents:
diff changeset
28 Init (My_R2);
kono
parents:
diff changeset
29 end;