Let $S \subset C([0,1],\mathbb{R})$ be an $\mathbb{R}$-linear subspace that is invariant under the $T := \int_0^x$ integration operation: if $g \in S$ then the function $f = Tg$ defined pointwise by $f(x) := \int_0^x g(t) \, dt$ is in $S$ too.
A basic example is the (unital) polynomial algebra $A := \mathbb{R}[x] \hookrightarrow C([0,1],\mathbb{R})$, which according to Weierstrass's theorem is dense in the uniform (i.e., $L^{\infty}$) norm. That means that in the $L^{\infty}$ norm, the closure $\overline{A} = C([0,1],\mathbb{R})$. Generalizing this, consider more generally the closure $\overline{S}$ of $S$ in the $L^{\infty}$ norm. The manifest possibilities for that closure are the linear subspaces $$ \{f \in C([0,1],\mathbb{R}) \mid f|_{I} \equiv 0 \} $$ defined by a vanishing condition along some open ($I = [0,a)$) or closed ($I = [0,a]$) initial segment $0 \in I \subset [0,1]$, possibly empty or reduced to the point $\{0\}$.
Question. Are there any other possibilities for the closure $\overline{S}$ besides these?
Equivalently, and in the contrapositive formulation: If $g \in C([0,1],\mathbb{R})$ has $g(0) \neq 0$, must the constant function $1 = \chi_{[0,1]}$ be a uniform limit of linear combinations from $\{T^ng \mid n = 0,1,\ldots\}$?