Heart attacks could predicted five years in advance with a simple eye test that can identify warning signs.