aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/Linux/clang_gcc_abi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/Linux/clang_gcc_abi.cc')
-rw-r--r--test/asan/TestCases/Linux/clang_gcc_abi.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/asan/TestCases/Linux/clang_gcc_abi.cc b/test/asan/TestCases/Linux/clang_gcc_abi.cc
index e833881661d2..669d1524077c 100644
--- a/test/asan/TestCases/Linux/clang_gcc_abi.cc
+++ b/test/asan/TestCases/Linux/clang_gcc_abi.cc
@@ -8,9 +8,10 @@
#include <stdlib.h>
+__attribute__((noinline))
int boom() {
volatile int three = 3;
- char *s = (char *)malloc(three);
+ char * volatile s = (char *)malloc(three);
// CHECK: #1 0x{{.*}} in boom {{.*}}clang_gcc_abi.cc:[[@LINE-1]]
return s[three]; //BOOM
}