2 # copyright (c) 2011 Emil Mikulic.
4 # The rule is that every header has to bring in all of its dependencies.
6 # This script tests to make sure it's true: for each header file,
7 # test-compile a C source file that includes just the header.
9 # Also test that it can be included twice without problems.
15 echo "usage: $0 *.h" >&2
22 void test_hdr_do_nothing(void) { }
24 if gcc
-c $src 2>/dev
/null
; then
27 echo "===> FAIL: $f <==="
34 void test_hdr_do_nothing(void) { }
36 if gcc
-c $src 2>/dev
/null
; then
39 echo "===> FAIL DOUBLE: $f <==="