Most likely, GCC will generate an error yelling about not being able to find main.
For what it's worth... I actually could compile a .swift file that had nothing in it... But it'd have to be called main.swift. swift-is-magic and has an implicit main function that exists in a file called main.swift.