aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/contrib/reghunt/examples/30643.test
blob: ba9b0e0ff47540ae5de4c74d8fd43a6ca91937f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh

ID=$1

LOGID=`printf "%04d" ${ID}`
LOG=${BUGID}.${LOGID}.out
MSGID="bug ${BUGID}, id ${ID}"
ASM=${BUGID}.${LOGID}.s

$REG_TEST_COMPILER $REG_OPTS $REG_TESTCASE > ${LOG} 2>&1

if [ $? -ne 0 ]; then
    echo "`date`  compilation failed unexpectedly for ${MSGID}"
    exit REG_ERROR
fi

cp ${BUGID}.s $ASM

grep -q abort $ASM
if [ $? -eq 0 ]; then
    echo "`date`  abort call exists for ${MSGID}"
    exit $REG_FAIL
fi

echo "`date`  no call to abort for ${MSGID}"
exit $REG_PASS