summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/anon2.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/anon2.adb')
-rw-r--r--gcc/testsuite/gnat.dg/anon2.adb9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/anon2.adb b/gcc/testsuite/gnat.dg/anon2.adb
new file mode 100644
index 000000000..c114fcc85
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/anon2.adb
@@ -0,0 +1,9 @@
+-- { dg-do compile }
+
+with anon1;
+procedure anon2 is
+begin
+ if anon1.F /= null then
+ null;
+ end if;
+end anon2;