[cfe-commits] Patch for review
Ben Laurie
benl at google.com
Tue Feb 17 02:23:56 PST 2009
Don't include alloca.h if it doesn't exist.
Index: test/Analysis/stack-addr-ps.c
===================================================================
--- test/Analysis/stack-addr-ps.c (revision 64650)
+++ test/Analysis/stack-addr-ps.c (working copy)
@@ -1,9 +1,12 @@
-// RUN: clang -analyze -checker-simple -verify %s &&
-// RUN: clang -analyze -checker-cfref -analyzer-store-basic -verify %s &&
-// RUN: clang -analyze -checker-cfref -analyzer-store-region -verify %s
+// RUN: clang -analyze -checker-simple -verify -I../../../include %s &&
+// RUN: clang -analyze -checker-cfref -analyzer-store-basic -verify
-I../../../include %s &&
+// RUN: clang -analyze -checker-cfref -analyzer-store-region -verify
-I../../../include %s
#include <stdlib.h>
-#include <alloca.h>
+#include <llvm/Config/config.h>
+#ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+#endif
int* f1() {
int x = 0;
More information about the cfe-commits
mailing list