summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/volatile5.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/volatile5.adb')
-rw-r--r--gcc/testsuite/gnat.dg/volatile5.adb16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/volatile5.adb b/gcc/testsuite/gnat.dg/volatile5.adb
new file mode 100644
index 000000000..24527a500
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/volatile5.adb
@@ -0,0 +1,16 @@
+-- { dg-do compile }
+
+with Volatile5_Pkg; use Volatile5_Pkg;
+
+procedure Volatile5 is
+
+ A : Rec;
+
+ procedure Proc is
+ begin
+ A := F;
+ end;
+
+begin
+ Proc;
+end;