summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr12.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/aggr12.adb')
-rw-r--r--gcc/testsuite/gnat.dg/aggr12.adb20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/aggr12.adb b/gcc/testsuite/gnat.dg/aggr12.adb
new file mode 100644
index 000000000..8a18291f7
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/aggr12.adb
@@ -0,0 +1,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" } }