aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug21513/pb.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2014-01-19 02:24:46 +0100
committerTristan Gingold <tgingold@free.fr>2014-01-19 02:24:46 +0100
commite47227b318ac19fed2fb140614c70b30cb5329d7 (patch)
treea56c66f66ce02558d5f7458582359381a27080c7 /testsuite/gna/bug21513/pb.vhdl
parentf3db20a0780892ef7c8f12f1fa07d48b8c094423 (diff)
downloadghdl-e47227b318ac19fed2fb140614c70b30cb5329d7.tar.gz
ghdl-e47227b318ac19fed2fb140614c70b30cb5329d7.tar.bz2
ghdl-e47227b318ac19fed2fb140614c70b30cb5329d7.zip
Fix bug21513: expanded name with operator_symbol prefix.
Diffstat (limited to 'testsuite/gna/bug21513/pb.vhdl')
-rw-r--r--testsuite/gna/bug21513/pb.vhdl17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/bug21513/pb.vhdl b/testsuite/gna/bug21513/pb.vhdl
new file mode 100644
index 000000000..5b63cf1ab
--- /dev/null
+++ b/testsuite/gna/bug21513/pb.vhdl
@@ -0,0 +1,17 @@
+entity pb is
+end pb;
+
+architecture behav of pb is
+ type t is record
+ v : integer;
+ end record;
+
+ function "-" (a, b : t) return t is
+ variable v : integer;
+ begin
+ "-".v := a.v;
+ v := "-".b.v;
+ return b;
+ end "-";
+begin
+end;