Let $\varOmega \subset\mathbb R^n$ be a bounded connected open set and $r$ a positive integer.
Given $f\in C^r (\overline \varOmega)$ (i.e. $f$ is $C^r$ on $\varOmega$ and it extends continuously, together with all its partial derivatives up to order $r$, to the whole $\overline \varOmega$).
Question: Does it follows, without further assumption on $\varOmega$, that $f$ has a $C^r$ extension to the whole $\mathbb R^n$?
The answer is negative, as pointed out by Willie Wong - see the counterexample in
Density of polynomials in $C^k(\overline\Omega)$
The answer is positive if $\varOmega$ is Lipschitz.