edit test.cpp

This commit is contained in:
2021-03-10 16:17:47 +09:00
parent f74469a01c
commit f8fbc66cee
2 changed files with 68 additions and 4 deletions

View File

@ -85,6 +85,15 @@ int main(int ArgiCnt, char** AppArgu)
HereInt2 myi2= &myi1;
HereInt3 myi3= myi1 ; myi3=123;
ZtCRef<int> myref(myi1);
ZtCCheckRef< int > myrefcheck1(myi1); myrefcheck1.GetData();
ZtCCheckRef< ZtCRef<int> > myrefcheck2(myi1); myrefcheck2.GetData();
myi1=4321;
cout<<"# myrefcheck1.GetData()="<<myrefcheck1.GetData()<<endl;
cout<<"# myrefcheck2.GetData()="<<myrefcheck2.GetData()<<endl;
cout<<"# HereInt1 ="<< typeid(myi1).name()<<endl;
cout<<"# HereInt2 int* ="<< typeid(myi2).name()<<endl;
cout<<"# HereInt3 int& ="<< typeid(myi3).name()<<endl;