Test interaction of dynamic variables with extend-continuation and guard-dynamic-extent.