aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2134/repro1.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue2134/repro1.vhdl')
-rw-r--r--testsuite/gna/issue2134/repro1.vhdl22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/issue2134/repro1.vhdl b/testsuite/gna/issue2134/repro1.vhdl
new file mode 100644
index 000000000..0e4943295
--- /dev/null
+++ b/testsuite/gna/issue2134/repro1.vhdl
@@ -0,0 +1,22 @@
+entity repro1 is
+end;
+
+architecture behav of repro1 is
+ type protected_t is protected
+ impure function some_function return natural;
+ end protected;
+
+ type protected_t is protected body
+ variable i : integer;
+ impure function some_function return natural is
+ begin
+ return i;
+ end function;
+ end protected body;
+
+ shared variable si : protected_t;
+
+ attribute some_value : integer;
+ attribute some_value of si : variable is 1;
+begin
+end behav;