4 echo "usage: sztest [-H HEADER] TYPE [CCFLAGS...]" >&2
9 while [ "${1:0:1}" = "-" ]; do
21 file="$(mktemp /tmp/sztestXXXXXX)"
25 #include <sys/types.h>
29 for header in $headers; do
30 echo "#include <$header>" >>"$file.c"
33 int main(int argc, char **argv)
35 printf("%zi\n", sizeof($type));
40 if ! gcc "$@" -g -Wall -o "$file" "$file.c"; then
41 rm -f "$file" "$file.c"