You'll get on another flight, but often it will involve an endless phone tree one airline passing the buck to the other.
Also to note - even if airlines codeshare with each-other it doesn't mean it will be on all routes or from all origins to all destinations. It's on a case-by-case basis. Even if there's a codeshare flight number, it also doesn't mean that the other airline will get to sell any tickets on it.