1 // -*- mode: C++; c-file-style: "cc-mode" -*-
2 //*************************************************************************
3 //
4 // Copyright 2021 by Geza Lore. This program is free software; you can
5 // redistribute it and/or modify it under the terms of either the GNU
6 // Lesser General Public License Version 3 or the Perl Artistic License
7 // Version 2.0.
8 // SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
9 //
10 //*************************************************************************
11 
12 #include <cassert>
13 #include <iostream>
14 
15 #include <Vt_const_bitoptree_bug3096.h>
16 
main(int argc,char * argv[])17 int main(int argc, char* argv[]) {
18     Vt_const_bitoptree_bug3096* const tb = new Vt_const_bitoptree_bug3096;
19 
20     tb->instr_i = 0x08c0006f;
21     tb->eval();
22 
23     std::cout << "tb->illegal_instr_o: " << static_cast<int>(tb->illegal_instr_o) << std::endl
24               << std::flush;
25     assert(tb->illegal_instr_o == 0);
26 
27     delete tb;
28     return 0;
29 }
30