test to reproduce issue #1134

This is rewriting in C example from issue #1134.