I am looking for a function $f:[a,b] \to \mathbb R$ ($a 0$ there is no $g:[a-\epsilon,b+\epsilon] \to \mathbb R$ which is also continuously differentiable and coincides with $f$ on $[a,b]$.
I was thinking about functions which have natural definition gaps on $\mathbb R$, like $\frac{1}{x}, \log(x)$, but all of them are defined on a non compact interval.
Background: I am trying to construct a counter-example for a certain statement in real analysis.