Let $f \in \mathcal{S}$ whose Fourier transform $\mathcal{F}(f)$ is zero outside the segment $[-1/2, 1/2]$. Let $h$ be the function defined on $\mathbb{R}$, which is 1-periodic and which equals $\mathcal{F}(f)$ on the interval $[-1/2, 1/2]$. Show that $h$ is of class $C^{\infty}$ on $\mathbb{R}$.