diff --git a/examples/test b/examples/test index 326ced2..aa9d41f 100755 Binary files a/examples/test and b/examples/test differ diff --git a/examples/test.cpp b/examples/test.cpp index 70efc3f..4b51cd3 100644 --- a/examples/test.cpp +++ b/examples/test.cpp @@ -10,9 +10,33 @@ using namespace std; +class A +{ + int i; + +public: + A(int ii = 0) : i(ii) {} + void show() { cout << i << endl; } +}; + +class B +{ + int x; + +public: + B(int xx) : x(xx) {} + operator A() const { return A(x); } +}; + +void g(A a) +{ + a.show(); +} + int main() { - // - cout << boolalpha << ((7 >= 7) && (true || 99 < 1) || !(3 > 5 && 7 < 10) && 2 != 4) << endl; + B b(10); + g(b); + g(20); return 0; } \ No newline at end of file