aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket86/bug.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/ticket86/bug.vhdl')
-rw-r--r--testsuite/gna/ticket86/bug.vhdl28
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/ticket86/bug.vhdl b/testsuite/gna/ticket86/bug.vhdl
new file mode 100644
index 000000000..8c879fc7e
--- /dev/null
+++ b/testsuite/gna/ticket86/bug.vhdl
@@ -0,0 +1,28 @@
+package pkg is
+ procedure proc;
+end package;
+
+package body pkg is
+ procedure proc is
+ type nested_prot_t is protected
+ procedure proc;
+ end protected;
+ type nested_prot_t is protected body
+ procedure proc is
+ begin
+ end procedure;
+ end protected body;
+ variable nested_prot : nested_prot_t;
+ begin
+ nested_prot.proc;
+ end procedure;
+end package body;
+
+entity ent is
+end;
+
+architecture behav of ent is
+begin
+ work.pkg.proc;
+end;
+