OSDN Git Service

* examples: New directory.
[pf3gnuchains/gcc-fork.git] / contrib / reghunt / examples / 30643.test
1 #! /bin/sh
2
3 ID=$1
4
5 LOGID=`printf "%04d" ${ID}`
6 LOG=${BUGID}.${LOGID}.out
7 MSGID="bug ${BUGID}, id ${ID}"
8 ASM=${BUGID}.${LOGID}.s
9
10 $REG_TEST_COMPILER $REG_OPTS $REG_TESTCASE > ${LOG} 2>&1
11
12 if [ $? -ne 0 ]; then
13     echo "`date`  compilation failed unexpectedly for ${MSGID}"
14     exit REG_ERROR
15 fi
16
17 cp ${BUGID}.s $ASM
18
19 grep -q abort $ASM
20 if [ $? -eq 0 ]; then
21     echo "`date`  abort call exists for ${MSGID}"
22     exit $REG_FAIL
23 fi
24
25 echo "`date`  no call to abort for ${MSGID}"
26 exit $REG_PASS