From c8f1ab503510cf6a87013b68aab27402512e2f4a Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Tue, 17 Feb 2009 17:33:31 +0000 Subject: [PATCH] Don't include alloca.h if it doesn't exist. llvm-svn: 64771 --- clang/test/Analysis/stack-addr-ps.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/clang/test/Analysis/stack-addr-ps.c b/clang/test/Analysis/stack-addr-ps.c index b1214efd31ac..668df5ba3c6b 100644 --- a/clang/test/Analysis/stack-addr-ps.c +++ b/clang/test/Analysis/stack-addr-ps.c @@ -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 -#include +#include +#ifdef HAVE_ALLOCA_H +# include +#endif int* f1() { int x = 0;