#!/bin/bash . $(dirname $0)/common.inc test_cflags -static || skip cat < long foo(); int main() { printf("%ld\n", foo()); } EOF $CC -B. -static -o $t/exe $t/a.o $t/b.o $QEMU $t/exe | grep '^0$'