In the phrase
Les garçons ont passé leur examen et tous l'ont eu.
I understand that it means
The boys took their tests and all of them passed.
But what I can't figure out is what is the expression used on the phrase. “Avoir avoir”?
Or avoir can just mean “passed” and there is no expression at all?