Prompt dipole gamma-ray emission in fusionlike heavy-ion reactions