/trunk/Examples/test-suite/octave/smart_pointer_overload_runme.m
Objective C | 27 lines | 21 code | 6 blank | 0 comment | 12 complexity | a8b269d0ea8d74d18e970a03a4fbef35 MD5 | raw file
1smart_pointer_overload 2 3f = Foo(); 4b = Bar(f); 5 6 7if (f.test(3) != 1) 8 error 9endif 10if (f.test(3.5) != 2) 11 error 12endif 13if (f.test("hello") != 3) 14 error 15endif 16 17if (b.test(3) != 1) 18 error 19endif 20if (b.test(3.5) != 2) 21 error 22endif 23if (b.test("hello") != 3) 24 error 25endif 26 27