summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr12.adb
blob: 8a18291f7911ec2a28d4081af5670669a129cbbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- { dg-do compile }
-- { dg-options "-fdump-tree-original" }

package body Aggr12 is

  procedure Print (Data : String) is
  begin
    null;
  end;

  procedure Test is
  begin
    Print (Hair_Color_Type'Image (A.I1));
    Print (Hair_Color_Type'Image (A.I2));
  end;

end Aggr12;

-- { dg-final { scan-tree-dump-not "{.i1=0, .i2=2}" "original" } }
-- { dg-final { cleanup-tree-dump "original" } }