112855Sgabeblack@google.com 212855Sgabeblack@google.com#if !defined(SC_USE_SC_STRING_OLD) && !defined(SC_USE_STD_STRING) 312855Sgabeblack@google.com# define SC_USE_SC_STRING_OLD 412855Sgabeblack@google.com//# define SC_USE_STD_STRING 512855Sgabeblack@google.com#endif //SC_USE_STRING_* 612855Sgabeblack@google.com 712855Sgabeblack@google.com#include "systemc.h" 812855Sgabeblack@google.com 912855Sgabeblack@google.comint sc_main(int argc, char* argv[]) 1012855Sgabeblack@google.com{ 1112855Sgabeblack@google.com sc_string s5 = "abc"; 1212855Sgabeblack@google.com sc_string s6 = s5; 1312855Sgabeblack@google.com 1412855Sgabeblack@google.com s6[1] ='X'; 1512855Sgabeblack@google.com cout << "s5: " << s5 << endl << "s6: " << s6 << endl; 1612855Sgabeblack@google.com return 0; 1712855Sgabeblack@google.com} 18