summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-07-01 09:15:19 +0000
committerAlexey Samsonov <samsonov@google.com>2013-07-01 09:15:19 +0000
commitc3832f7788db8df5930cd92ef22edfa204a3a9d0 (patch)
tree8344c52c0b56561153fbfe7351ec0457e0c55e68 /compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
parentd6e856f722548428b188d08476603ced0be4a777 (diff)
downloadbcm5719-llvm-c3832f7788db8df5930cd92ef22edfa204a3a9d0.tar.gz
bcm5719-llvm-c3832f7788db8df5930cd92ef22edfa204a3a9d0.zip
[ASan] Add sanity test for asan_symbolize.py script
llvm-svn: 185318
Diffstat (limited to 'compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc')
-rw-r--r--compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
index 686a2457808..6ef565ce47b 100644
--- a/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
+++ b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
@@ -19,3 +19,8 @@ extern "C"
void inc(int index) {
GLOB[index]++;
}
+
+extern "C"
+void inc2(int *a, int index) {
+ a[index]++;
+}
OpenPOWER on IntegriCloud