Don't include alloca.h if it doesn't exist.

llvm-svn: 64771
This commit is contained in:
Ben Laurie 2009-02-17 17:33:31 +00:00
parent 54a06ce437
commit c8f1ab5035
1 changed files with 7 additions and 4 deletions

View File

@ -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;