Tunisia defeated France 1-0 but have been eliminated from the 2022 World Cup.
Wahbi Khazri scored the only goal of the game to stun the world champions in Qatar.
Tunisia took full advantage of Didier Deschamps making nine changes to his France side and resting Kylian Mbappe.
France only started to put pressure on in the latter stages when Mbappe was substituted on and they thought they had levelled it up when Griezmann fired home but an eventual VAR review spotted he was offside in the build-up.
However, Australia progressed as runners-up in Group D thanks to their win over Denmark.
With Australia beating Denmark to finish on six points, it meant Tunisia, who finished third, crashed out in strange fashion having taken four points off France and Denmark.
France will play Group C runners-up Poland – who made the knockout rounds in dramatic circumstances later on Wednesday – on Sunday at 3pm with a potential meeting with England in the quarter-finals if they win their last-16 game.
By SkySports