"Hold up, here's James Bond!"
Played by Dennis Waterman, a TV legend who passed away this week, Detective Sergeant George Carter makes a reference to James Bond, at the climax of 'Sweeney!' (1977), when spotting Secret Service agents who are on assignment to deport McQueen (Barry Foster), a murderous but now compromised agent of a multinational energy corporation which had employed him to do its dirty work. Right at the end of the film, Carter's angry rebuke to a vengeful Detective Inspector Jack Regan (John Thaw) is a memorable big screen moment for Dennis Waterman:
(I think Q briefly disguised himself as a sweep, too, in LTK.)
This terrific little film is also notable, in earlier scenes, for a character played by Ian Bannen, Sean Connery's friend and his co-star in 'The Hill' and 'The Offence'.