You cannot mega evolve shadow or clone Pokémon. You can mega evolve purified Pokémon, but they won't have a swirly white aura when mega evolved. You cannot use a mega evolved Pokémon to defend a gym. Mega Pokémon can't be used in the GO Battle League (but this may change in the future)