aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue821/ent.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue821/ent.vhdl')
-rw-r--r--testsuite/gna/issue821/ent.vhdl21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue821/ent.vhdl b/testsuite/gna/issue821/ent.vhdl
new file mode 100644
index 000000000..93ccbd322
--- /dev/null
+++ b/testsuite/gna/issue821/ent.vhdl
@@ -0,0 +1,21 @@
+entity tb is
+ generic (output_path : string := "");
+end entity;
+architecture bench of tb is
+ type tb_cfg_t is record
+ s1 : string;
+ s2 : string;
+ end record tb_cfg_t;
+
+ impure function decode return tb_cfg_t is
+ begin
+ return (
+ s1 => output_path&"a",
+ s2 => "b"
+ );
+ end function decode;
+begin
+ proc : process begin
+ std.env.finish;
+ end process;
+end bench;