aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vhpi/001load_lib/vhpi_lib.c
diff options
context:
space:
mode:
authorMarlon James <marlon.james@gmail.com>2021-03-03 12:06:53 -0800
committertgingold <tgingold@users.noreply.github.com>2021-03-04 07:49:28 +0100
commit062ff5b6a41caf93e03c417e31a8a6471993abf1 (patch)
treefcc773b7c6a153e911120ee611945bb3347e91c2 /testsuite/vhpi/001load_lib/vhpi_lib.c
parent783cbac7ba4c14aa7e27f28755dccd7e4ee4d54e (diff)
downloadghdl-062ff5b6a41caf93e03c417e31a8a6471993abf1.tar.gz
ghdl-062ff5b6a41caf93e03c417e31a8a6471993abf1.tar.bz2
ghdl-062ff5b6a41caf93e03c417e31a8a6471993abf1.zip
VHPI: add tests for loading libraries
Diffstat (limited to 'testsuite/vhpi/001load_lib/vhpi_lib.c')
-rw-r--r--testsuite/vhpi/001load_lib/vhpi_lib.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/vhpi/001load_lib/vhpi_lib.c b/testsuite/vhpi/001load_lib/vhpi_lib.c
new file mode 100644
index 000000000..46b70ede4
--- /dev/null
+++ b/testsuite/vhpi/001load_lib/vhpi_lib.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <vpi_user.h>
+
+void my_startup()
+{
+ printf ("VHPI lib\n");
+}
+
+void (*vhpi_startup_routines[]) () =
+{
+ my_startup,
+ 0
+};