From 31ce1fdfd3c335ed4728cd3034f73ca020b94954 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 27 Mar 2022 14:50:49 -0400 Subject: [PATCH] Tests: Check legacy part of (#3255) --- test_regress/t/t_wrapper_legacy.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test_regress/t/t_wrapper_legacy.cpp b/test_regress/t/t_wrapper_legacy.cpp index c0dc195d2..6b123aed7 100644 --- a/test_regress/t/t_wrapper_legacy.cpp +++ b/test_regress/t/t_wrapper_legacy.cpp @@ -82,6 +82,15 @@ int main(int argc, char** argv, char** env) { TEST_CHECK_EQ(Verilated::timeunit(), 12); TEST_CHECK_EQ(Verilated::timeprecision(), 12); + TEST_CHECK_EQ(sizeof(vluint8_t), 1); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vluint16_t), 2); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vluint32_t), 4); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vluint64_t), 8); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vlsint8_t), 1); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vlsint16_t), 2); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vlsint32_t), 4); // Intentional use of old typedef + TEST_CHECK_EQ(sizeof(vlsint64_t), 8); // Intentional use of old typedef + VM_PREFIX* topp = new VM_PREFIX(); topp->eval();