My friend checked in at the front desk, but never went near the gate, so he didn't give the boarding pass to the gate agent. This was a return flight from elsewhere, not a connection (as Astro describes). And definitely, neither of us would even thinkabout doing it on an international flight, even "just" into Canada.