Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gnat.dg / renaming5.adb
blob35bf7bd9fea4565835a06113fb50c8d416b890d4
1 -- PR ada/46192
2 -- Testcase by Rolf Ebert <rolf.ebert.gcc@gmx.de>
4 -- { dg-do compile }
5 -- { dg-options "-O2 -fdump-tree-optimized" }
7 with System; use System;
9 package body Renaming5 is
11 type Bits_In_Byte is array (0 .. 7) of Boolean;
12 pragma Pack (Bits_In_Byte);
14 A : Bits_In_Byte;
15 for A'Address use System'To_Address(16#c0#);
16 pragma Volatile (A);
18 B : Bits_In_Byte renames A;
20 procedure Proc is
21 begin
22 while B (0) = False loop
23 null;
24 end loop;
25 end;
27 end Renaming5;
29 -- { dg-final { scan-tree-dump-times "goto" 2 "optimized" } }