// ---------------------------------------------------------------------------- // Description : Regular expressions tests. // ---------------------------------------------------------------------------- // (c) Copyright 1998 by iXiONmedia, all rights reserved. // ---------------------------------------------------------------------------- #include #include "test.hh" using namespace ixion; void f(ref x) { *x *= 5; } BEGIN_TEST ref x = new int(5); *x *= 2; ref y = x; *y = 7; f(x); TEST(*x == 35) END_TEST IXLIB_GARBAGE_DECLARE_MANAGER(int)