t/testc.sh: testcase for #340 (fails on 5.18/5.20)