I "thought" I had run out of gas about 20 years ago on a 88 Ninja 600R (first bike) but then remembered it had a reserve switch/tank.

I had actually go off of the bike and started walking before I remembered...dumbazz move but it never happened again.