diff options
-rw-r--r-- | test/Analysis/stack-addr-ps.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/Analysis/stack-addr-ps.c b/test/Analysis/stack-addr-ps.c index 3516fee0a4..3ee2063e24 100644 --- a/test/Analysis/stack-addr-ps.c +++ b/test/Analysis/stack-addr-ps.c @@ -3,10 +3,6 @@ // RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s #include <stdlib.h> -#include "../../../../include/llvm/Config/config.h" -#ifdef HAVE_ALLOCA_H -# include <alloca.h> -#endif int* f1() { int x = 0; @@ -42,7 +38,7 @@ void* compound_literal(int x, int y) { } void* alloca_test() { - void* p = alloca(10); + void* p = __builtin_alloca(10); return p; // expected-warning{{Address of stack memory}} } |