Again, why would you do this? Just go to one of the countless public toilets outside. How often are people trying to use the toilets in a restaurant without eating there? It seems insane they would even worry about this.
Also, my experience in Germany at a mall food court is that they DO charge you to use the toilet there, even though I was eating there.