build: depend on gnulib's calloc-gnu, not calloc
[cppi.git] / tests / ansi-8
blobad8e98027fee97cc00f8111b8b5acf85094572fd
1 #!/bin/sh
3 t=`basename $0`
5 cat > $t.I <<\EOF
6 #if 1
7 # if 0
8 # define x y
9 # endif (ansi violation)
10 #endif
11 EOF
13 cat > $t.EO <<\EOF
14 EOF
16 cat > $t.Ee <<\EOF
17 cppi: standard input: line 4: text following `#endif' violates ANSI standard
18 EOF
20 options='-c --ansi'
21 expected_status=1
23 . $top_srcdir/tests/test-common