summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/asan/TestCases/non-executable-pc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/non-executable-pc.cpp b/compiler-rt/test/asan/TestCases/non-executable-pc.cpp
index 0c27517809f..831f44dacab 100644
--- a/compiler-rt/test/asan/TestCases/non-executable-pc.cpp
+++ b/compiler-rt/test/asan/TestCases/non-executable-pc.cpp
@@ -3,10 +3,10 @@
// RUN: not %run %t n 2>&1 | FileCheck %s -check-prefix=CHECK -check-prefix=NON_EXEC
#include <assert.h>
-char array[42];
typedef void void_f();
int main(int argc, char **argv) {
+ char array[42];
void_f *func;
assert(argc > 1);
if (argv[1][0] == '0') {
OpenPOWER on IntegriCloud