## $Hom_G(C_c^{\infty}(G),\pi)= Hom_{\mathbb{C}}(\pi^{\vee},\mathbb{C}) ?$

$$G$$ is an p-adic group, and $$\pi$$ is an irreducible representation of $$G$$, then do we have $$Hom_G(C_c^{\infty}(G),\pi)= Hom_{\mathbb{C}}(\pi^{\vee},\mathbb{C})$$? I think it is true, but I do not have found the detailed proof.