/usr/src/gcc-4.6/debian/runcheck.sh is in gcc-4.6-source 4.6.4-6ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #! /bin/sh
mkdir -p build
cat >build/runcheck.c <<EOF
#include <stdio.h>
int main()
{
return printf("yes\n") != 4;
}
EOF
if m=$(${CC:-gcc} -o build/runcheck build/runcheck.c 2>&1); then
m=$(build/runcheck 2>&1)
echo ${m#* } > build/runcheck.out
echo ${m#* }
else
echo ${m##*:} > build/runcheck.out
echo ${m##*:}
fi
|