]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Fix bad test for compiler pch support
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Aug 2010 17:12:27 +0000 (19:12 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Aug 2010 17:12:27 +0000 (19:12 +0200)
test.sh

diff --git a/test.sh b/test.sh
index a860da7cf9bd03360d1cbd5cb665b705274ef76e..a16874bd1db80a205dc6b0f5e8cd5207ce6cbe99 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1599,7 +1599,11 @@ pch_suite() {
 
     cat <<EOF >pch.c
 #include "pch.h"
-void *p = NULL;
+int main()
+{
+  void *p = NULL;
+  return 0;
+}
 EOF
     cat <<EOF >pch.h
 #include <stdlib.h>