I think An example of dramatic irony in the outsiders is:
The audience can see that Ponyboy may have turned his back on Darry, but the moment that he did Dally quickly fills that role with the same advice. Ponyboy sort of sees the connection, but not clearly, which is why this scene is an example of dramatic irony.
Or The dramatic irony comes from the fact that while we the viewers know that his gun is unloaded, the cops have no idea, leading them to misjudge the situation. If the cops knew that his gun was unloaded, they likely would not have shot him.