Add a failing test case for issue #12017

Hello,

This pull request add a failing test case for #12017. I'm "ci-skipping" since the build should fail. I will add the changelog entry etc. when we can get it fixed.

Have a nice day.