末期養子
まつごようし
deathbed adoption of a successor (to prevent extinction of the family line)/person adopted by someone on his deathbed