In a large skillet, heat oil over medium heat. Once hot, add tomatoes, garlic, salt, and pepper. Cook for 2 to 3 minutes, stirring often, until the tomatoes begin to soften. Stir in zucchini and squash, cooking until tender, about 3 to 4 minutes. Stir in corn and cook for about 1 minute, stirring constantly.