diff options
Diffstat (limited to 'src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select')
-rw-r--r-- | src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/golden/test01.log | 4 | ||||
-rw-r--r-- | src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/test01.cpp | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/golden/test01.log b/src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/golden/test01.log new file mode 100644 index 000000000..912f0b58b --- /dev/null +++ b/src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/golden/test01.log @@ -0,0 +1,4 @@ +SystemC Simulation + +Error: (E5) out of bounds: sc_biguint bit selection: index = 3 violates 0 <= index <= 2 +In file: <removed by verify.pl> diff --git a/src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/test01.cpp b/src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/test01.cpp new file mode 100644 index 000000000..7881023b7 --- /dev/null +++ b/src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01/test01.cpp @@ -0,0 +1,11 @@ +#include "systemc.h" +int sc_main(int argc, char** argv) +{ + sc_biguint<3> bi; + + cout << bi[3] << endl; + + cout << "Program completed" << endl; + return 0; +} + |