aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/alloca_vla_interact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/alloca_vla_interact.cc')
-rw-r--r--test/asan/TestCases/alloca_vla_interact.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/asan/TestCases/alloca_vla_interact.cc b/test/asan/TestCases/alloca_vla_interact.cc
index 531cc243055d..3873c3fceea8 100644
--- a/test/asan/TestCases/alloca_vla_interact.cc
+++ b/test/asan/TestCases/alloca_vla_interact.cc
@@ -2,15 +2,19 @@
// RUN: %run %t 2>&1
//
// REQUIRES: stable-runtime
-// XFAIL: powerpc64
// This testcase checks correct interaction between VLAs and allocas.
#include <assert.h>
-#include <alloca.h>
#include <stdint.h>
+#include <stdlib.h>
#include "sanitizer/asan_interface.h"
+// MSVC provides _alloca instead of alloca.
+#if defined(_MSC_VER) && !defined(alloca)
+# define alloca _alloca
+#endif
+
#define RZ 32
__attribute__((noinline)) void foo(int len) {