aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug080/impurefunc.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug080/impurefunc.vhdl')
-rw-r--r--testsuite/gna/bug080/impurefunc.vhdl11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/gna/bug080/impurefunc.vhdl b/testsuite/gna/bug080/impurefunc.vhdl
new file mode 100644
index 000000000..0b83b96e2
--- /dev/null
+++ b/testsuite/gna/bug080/impurefunc.vhdl
@@ -0,0 +1,11 @@
+package impurefunc is
+ signal a: bit;
+ impure function impure_func return boolean;
+end package;
+package body impurefunc is
+ impure function impure_func return boolean is
+ begin
+ a <= '1';
+ return FALSE;
+ end function;
+end package body;