There's no graphics command in there so it can't run as it. Added graphics and it exits with a wierd runtime error.
Building untitled2 Compiling:untitled2.bmx flat assembler version 1.64 3 passes, 18501 bytes. Linking:untitled2.debug.exe Executing:untitled2.debug.exe runtime error R6025 - pure virtual function call Process complete