Add a test case to demonstrate #1387

Basically, when an executable depends on a C-source, changing that
C-source triggers a recompilation but no re-linking of the executable.

Signed-off-by: Christoph Höger <christoph.hoeger@tu-berlin.de>
Merge branch 'testcase without fix'

This adds the test case for the fix.