An injury-time point from Ger Spillane condemned Donegal to a dramatic defeat by Cork in Saturday's All-Ireland quarter-final at Croke Park.
Donegal captain Christy Toye sends the ball into the Cork net
Donegal dominated a poor first half and Christy Toye fisted in a fifth minute goal before John Hayes converted a penalty for Cork seven minutes later.
The Ulster side led 1-5 to 1-3 at the break but Cork were soon level in an evenly contested second half.
Spillane pointed deep into added time to set up a meeting with Kerry.
It was poor opening 35 minutes, scrappy and littered with errors from both sides.
Donegal established the early initiative with Rory Kavanagh's point followed by Toye's goal on five minutes.
Michael Doherty sent in a deep free-kick and the Donegal captain was well placed to fist the ball into the Cork net.
Cork's opening score was a 12th minute goal from a controversial penalty spot.
Barry Monaghan was deemed to have hauled down the charging Nicholas Murphy and Donegal keeper Paul Durcan failed to keep out Hayes' spot-kick.
Donegal dominated but failed to convert enough chances and only led by two points at the break.
Doherty increased the gap on the restart but Cork hit back with three points and then went ahead through a Donnacha O'Connor score.
The response from Donegal was positive - Monghan and Doherty pointed before Colin Kelly's superb strike from wide put the Ulster side two points in front.
But Cork came back again in what was a much improved second period, and Sean O'Brien equalised after 62 minutes.
Donegal substitute Adrian Sweeney sent a 69th minute free wide and it was left to Spillane to win the game with just seconds remaining.
Donegal: P Durcan, N McGee, E McGee, K Lacey, T Donoghue, B Monaghan, B Dunnion, N Gallagher, B Boyle, C Bonner, M Hegarty, R Kavanagh, L Thompson, C Toye (cat), M Doherty.
Cork: A Quirke, M Prout, D Kavanagh, K O'Connor, M Shields, G Spillane, A Lynch, N Murphy, P O'Neill, S O'Brien, F Gould, K McMahon, J Masters, D O'Connor, J Hayes.
Referee: T Quigley (Dublin)