What is an example of $f$ differentiable on $[a,b]$ but $f'$ is not continuous at some point in $[a,b]$?
For context about why I am asking:
Darboux's Theorem says that if $f$ is differentiable on $[a,b]$ and $f'(a)<c<f'(b)$ then there is an $x$ such that $x \in (a,b)$ and $f'(x)=c$.
In other words, if $f'$ is defined in an interval $[a,b]$, then $f'$ takes on every value between $f'(a)$ and $f'(b)$.
This looks like the Intermediate Value Theorem for $f'$, except that we are making no mention of $f'$ needing to be continuous.
In fact, in Spivak's Calculus, when he introduces Darboux's Theorem in a problem he says "note that we are not assuming that $f'$ is continuous".
So is Darboux's Theorem literally saying that if $f$ differentiable then the IVT applies to $f'$ on $[a,b]$, or is it only saying that something similar to IVT applies to $f'$ on $[a,b]$?
In particular, how can we have $f$ differentiable on $[a,b]$ but $f'$ not continuous? Why did Spivak make the cited comment?