test array declar/init/usage with malloc