diff options
Diffstat (limited to 'src/systemc/tests/systemc/communication/sc_export/test02')
-rw-r--r-- | src/systemc/tests/systemc/communication/sc_export/test02/golden/test02.log | 4 | ||||
-rw-r--r-- | src/systemc/tests/systemc/communication/sc_export/test02/test02.cpp | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/systemc/tests/systemc/communication/sc_export/test02/golden/test02.log b/src/systemc/tests/systemc/communication/sc_export/test02/golden/test02.log new file mode 100644 index 000000000..b2a9f1c81 --- /dev/null +++ b/src/systemc/tests/systemc/communication/sc_export/test02/golden/test02.log @@ -0,0 +1,4 @@ +SystemC Simulation + +Error: (E120) sc_export instance has no interface: x.export_1 +In file: <removed by verify.pl> diff --git a/src/systemc/tests/systemc/communication/sc_export/test02/test02.cpp b/src/systemc/tests/systemc/communication/sc_export/test02/test02.cpp new file mode 100644 index 000000000..f044fc741 --- /dev/null +++ b/src/systemc/tests/systemc/communication/sc_export/test02/test02.cpp @@ -0,0 +1,20 @@ +#include "systemc.h" + +SC_MODULE(X) +{ + SC_CTOR(X) + { + a(b); + } + sc_export<sc_signal_inout_if<int> > a; + sc_export<sc_signal_inout_if<int> > b; +}; + +int sc_main(int argc, char* argv[]) +{ + sc_clock clock; + X x("x"); + + sc_start(1, SC_NS); + return 0; +} |