I know if $f:[a,b] \to \mathbb{R}$ is continuous, then $g(x) = \int _{a}^{x}f(t) \, dt$ is differentiable on $[a,b]$. Furthermore, $g'(x) = f(x)$.
This is known as the first fundamental theorem of Calculus. However, I wonder if the converse is true, that is when $g(x)$ is differentiable if $f(x)$ is necessarily continuous. I don't think this is the case, but neither can I conceive a counterexample.
I was thinking about this because I think even if the distribution of a random variable is differentiable, the density is not necessarily continuous.
I think as the comment said, we just need to change a continuous $f$ at one point so that it is no longer continuous, but $g$ is not changed. I'll link the following somewhat unrelated question for future reference.