Shotgun Wedding
If a couple will have a baby and decides to get married, it’s called a “shotgun wedding.”
Examples
1. It was a shotgun wedding, but they are in love.
2. Suzan was six months pregnant when she got married. It was a shotgun wedding.