forked from OSchip/llvm-project
Don't include alloca.h if it doesn't exist.
llvm-svn: 64771
This commit is contained in:
parent
54a06ce437
commit
c8f1ab5035
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue