diff options
author | Gabe Black <gabeblack@google.com> | 2018-05-24 01:37:55 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-08-08 10:09:54 +0000 |
commit | 16fa8d7cc8c92f5ab879e4cf9c6c0bbb3567860f (patch) | |
tree | 7b6faaacb4574a555e561534aa4a8508c0624c32 /src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01 | |
parent | 7235d3b5211d0ba8f528d930a4c1e7ad62eec51a (diff) | |
download | gem5-16fa8d7cc8c92f5ab879e4cf9c6c0bbb3567860f.tar.xz |
systemc: Import tests from the Accellera systemc distribution.
Change-Id: Iad76b398949a55d768a34d027a2d8e3739953da6
Reviewed-on: https://gem5-review.googlesource.com/10845
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/tests/systemc/datatypes/int/sc_unsigned/bit_select/test01')
-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; +} + |