[Clang][Test] Fix optnone-pragma-optimize-off.cpp after 4a8b9399eb9c- #22978
Upstream commit 4a8b939 ("[Clang][Sema] Fix lambda attribute
processing order with clang optimize off") added a check for an
always_inline lambda declared in the initializer of a namespace-scope
variable under `#pragma clang optimize off`.
intel/llvm intentionally diverges from upstream in
Sema::getCurrentMangleNumberContext(): commit 478c205 ("[SYCL] Fix
Lambda Mangling in Namespace-Scope Variable Initializers", #20176)
cherry-picks community PR llvm/llvm-project#159115, which mangles the
the closure type with a closure-prefix for the enclosing variable.
CMPLRLLVM-77788
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
(partially cherry picked from commit 9c508e7a750a51cd54e21ac3910a8aad26820a58)