LorisBatacchi
That is exactly how it does not work in general, although in some particular case it might. A lot of folks have wet dreams and wishful thinking for such an arrangement, but actually reading those tax agreements and local law paints a different picture.
Edited: +1 on the post from Pearlharbour below.