is there an example of a non-even real $2\pi$-periodic continuous function $f(x)$ such that $$\int^{\pi}_{-\pi}f(x)\cdot sin(nx)dx = 0$$ for every $n\in \mathbb{Z}$.
I can easily construct a non-continuous example, and I managed to put up a proof that such a function cannot exist if $f(x)$ is continuously differentiable using convergence of the Fourier series.
Thanks Daniel Fischer for the answer!