From ffeafae39d6097b0c1d0a4d63f48afa9654938a1 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 29 Jul 2021 20:48:05 +0200 Subject: libghw: add missing semicolon to physical type formatting (#1825) --- ghw/libghw.c | 2 +- testsuite/gna/issue418/golden_tc749.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghw/libghw.c b/ghw/libghw.c index 7b01db680..116f1df1a 100644 --- a/ghw/libghw.c +++ b/ghw/libghw.c @@ -2180,7 +2180,7 @@ ghw_disp_type (struct ghw_handler *h, union ghw_type *t) printf (" %s = " GHWPRI64 " %s;\n", u->name, u->val, p->units[0].name); } - printf ("end units\n"); + printf ("end units;\n"); } break; case ghdl_rtik_type_array: { diff --git a/testsuite/gna/issue418/golden_tc749.txt b/testsuite/gna/issue418/golden_tc749.txt index 1b3ea1eae..e455c219a 100644 --- a/testsuite/gna/issue418/golden_tc749.txt +++ b/testsuite/gna/issue418/golden_tc749.txt @@ -18,7 +18,7 @@ type time is range <> units sec = 1000000000000000 fs; min = 60000000000000000 fs; hr = 3600000000000000000 fs; -end units +end units; subtype time is time range -9223372036854775808 to 9223372036854775807; type time_vector is array (natural range <>) of time; type natural_vector is array (natural range <>) of natural; -- cgit v1.2.3