aboutsummaryrefslogtreecommitdiffstats
path: root/tests/various/plugin.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-04-09 14:23:47 -0700
committerGitHub <noreply@github.com>2020-04-09 14:23:47 -0700
commit371af7da381e9d17e4475cb0599865f7bea5a632 (patch)
treeb1d667484c8db5feda7bc345b8b7c10d154fd4cf /tests/various/plugin.cc
parent516857f3ba662f467d56df562eeca9ed214ac702 (diff)
parentf11dd6e20838bce1b1fa8e085570d2126484d10f (diff)
downloadyosys-371af7da381e9d17e4475cb0599865f7bea5a632.tar.gz
yosys-371af7da381e9d17e4475cb0599865f7bea5a632.tar.bz2
yosys-371af7da381e9d17e4475cb0599865f7bea5a632.zip
Merge pull request #1858 from YosysHQ/eddie/fix1856
kernel: include "kernel/constids.inc"
Diffstat (limited to 'tests/various/plugin.cc')
-rw-r--r--tests/various/plugin.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/various/plugin.cc b/tests/various/plugin.cc
new file mode 100644
index 000000000..be305fbda
--- /dev/null
+++ b/tests/various/plugin.cc
@@ -0,0 +1,15 @@
+#include "kernel/rtlil.h"
+
+YOSYS_NAMESPACE_BEGIN
+
+struct TestPass : public Pass {
+ TestPass() : Pass("test", "test") { }
+ void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
+ {
+ size_t argidx = 1;
+ extra_args(args, argidx, design);
+ log("Plugin test passed!\n");
+ }
+} TestPass;
+
+YOSYS_NAMESPACE_END