Fix weak pointer test.

This test was broken in non-C grades due to an omission.

general/weak_ptr.m:
general/weak_ptr.exp2:
    As above.