export DYLD_PRINT_SEGMENTS=1 && ./main 2> segments.log
grep __FOOBAR segments.log > /dev/null || echo "PASS zero-length-segment"
(grep __FOOBAR segments.log > /dev/null && echo "FAIL zero-length-segment") || /usr/bin/true
export DYLD_PRINT_SEGMENTS=1 && ./main 2> segments.log
grep __FOOBAR segments.log > /dev/null || echo "PASS zero-length-segment"
(grep __FOOBAR segments.log > /dev/null && echo "FAIL zero-length-segment") || /usr/bin/true