[FuncSpec][NFC] Fix test for literal constant specialisation
The specialised function names depend in the order of specialisation,
which is the order as obtained by for (Function &F : M) { ... and
if this order is reversed tests that mention cloned function names
may break.
This patch fixes a failure triggered by -DLLVM_REVERSE_ITERATION:ON by
making the test not depend on specific cloned function names.