This test was failing under new-symbol-mangling = true. Adapt pattern to work in both cases. Related to #106002 from December.