Shooting a gun with depleted health gives ejected bullets without using ammo.
Tested with SMG and assault rifle using titanium-gold bullets.
Both guns show health 1/ (0%) and both have ammo left in them (not tested with guns whose health is depleted and don't have ammo left in them).