added loop8.c and modified test.sh in dg_test/