diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-08-29 08:01:46 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-08-29 08:01:46 +0200 |
commit | b461845ffeb94e902d84c058238fcfcd4074f1a6 (patch) | |
tree | 5a2bcc7733b32a649cfe8661f872f50051179657 /testsuite/gna/bug015/phys.vhdl | |
parent | b75d703676ab830ea3e5731e1965d1d89879a456 (diff) | |
download | ghdl-b461845ffeb94e902d84c058238fcfcd4074f1a6.tar.gz ghdl-b461845ffeb94e902d84c058238fcfcd4074f1a6.tar.bz2 ghdl-b461845ffeb94e902d84c058238fcfcd4074f1a6.zip |
Rename gnat/bug directories for non-gna bugs to avoid confusion.
Diffstat (limited to 'testsuite/gna/bug015/phys.vhdl')
-rw-r--r-- | testsuite/gna/bug015/phys.vhdl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/bug015/phys.vhdl b/testsuite/gna/bug015/phys.vhdl new file mode 100644 index 000000000..5af3359a4 --- /dev/null +++ b/testsuite/gna/bug015/phys.vhdl @@ -0,0 +1,24 @@ +package physical is + type FREQ is range 0 to INTEGER'high units + Hz; + kHz = 1000 Hz; + MHz = 1000 kHz; + GHz = 1000 MHz; +-- THz = 1000 GHz; + end units; +end package; + +entity tb is +end; + +use work.physical.all; + +architecture test of tb is + constant CLOCK_FREQ : FREQ := 100.0 MHz; + procedure p (a : freq := 1.0 Mhz) is + begin + end p; +begin + p (clock_freq); + -- empty +end architecture; |