diff options
author | Marlon James <marlon.james@gmail.com> | 2021-03-01 12:44:02 -0800 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-03-02 07:50:54 +0100 |
commit | a03aedddf650f923b06ebacb441a713930cd63e1 (patch) | |
tree | 13056350de2379e39802cda292c7bc023779c67f /testsuite/vpi/vpi005/vpi1.c | |
parent | f5e3ef10265440a3efc95281fef295cba6aab8a9 (diff) | |
download | ghdl-a03aedddf650f923b06ebacb441a713930cd63e1.tar.gz ghdl-a03aedddf650f923b06ebacb441a713930cd63e1.tar.bz2 ghdl-a03aedddf650f923b06ebacb441a713930cd63e1.zip |
VPI: support loading multiple libraries
Diffstat (limited to 'testsuite/vpi/vpi005/vpi1.c')
-rw-r--r-- | testsuite/vpi/vpi005/vpi1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/vpi/vpi005/vpi1.c b/testsuite/vpi/vpi005/vpi1.c new file mode 100644 index 000000000..f2cccd286 --- /dev/null +++ b/testsuite/vpi/vpi005/vpi1.c @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <vpi_user.h> + +void my_startup() +{ + printf ("VPI lib 1\n"); +} + +void (*vlog_startup_routines[]) () = +{ + my_startup, + 0 +}; |