===================================================================
@@ -191,6 +191,8 @@
Pragma_Remote_Types => False,
Pragma_Shared_Passive => False,
Pragma_Task_Dispatching_Policy => False,
+ Pragma_Unmodified => False,
+ Pragma_Unreferenced => False,
Pragma_Warnings => False,
others => True);
===================================================================
@@ -0,0 +1,11 @@
+-- { dg-do compile }
+-- { dg-options "-gnatd.F" }
+
+procedure Unreferenced is
+ X : aliased Integer;
+ Y : access Integer := X'Access;
+ Z : Integer renames Y.all;
+ pragma Unreferenced (Z);
+begin
+ null;
+end Unreferenced;