From 2153aea92dfa3f28990f00f85fcff3a552ee21b0 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 2 Jun 2015 21:55:06 +0200 Subject: Testcase for duplicate subprogram body. --- testsuite/gna/bug14/bug.vhdl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testsuite/gna/bug14/bug.vhdl (limited to 'testsuite/gna/bug14/bug.vhdl') diff --git a/testsuite/gna/bug14/bug.vhdl b/testsuite/gna/bug14/bug.vhdl new file mode 100644 index 0000000..bb0c4a1 --- /dev/null +++ b/testsuite/gna/bug14/bug.vhdl @@ -0,0 +1,15 @@ +package pkg is + function f (a : integer) return integer; +end pkg; + +package body pkg is + function f (a : integer) return integer is + begin + return 1; + end f; + + function f (a : integer) return integer is + begin + return 1; + end f; +end pkg; -- cgit