Add a test from https://github.com/llvm/llvm-project/issues/59999. It is always good to have more tests.