diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/loop_optimization12.adb')
-rw-r--r-- | gcc/testsuite/gnat.dg/loop_optimization12.adb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/loop_optimization12.adb b/gcc/testsuite/gnat.dg/loop_optimization12.adb new file mode 100644 index 0000000000..240874654a --- /dev/null +++ b/gcc/testsuite/gnat.dg/loop_optimization12.adb @@ -0,0 +1,22 @@ +-- { dg-do compile } +-- { dg-options "-O2" } + +package body Loop_Optimization12 is + + procedure Reset (S : Rec_Ptr) is + begin + for I in Enum1 loop + S.F (I).all := (others => + (others => + (others => + (others => + (others => + (others => + (others => + (others => + (others => + (others => 0)))))))))); + end loop; + end; + +end Loop_Optimization12; |