Reproducer test for bugzillas 971001 971004 971008

Bugs related to inline casts