From c3832f7788db8df5930cd92ef22edfa204a3a9d0 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 1 Jul 2013 09:15:19 +0000 Subject: [ASan] Add sanity test for asan_symbolize.py script llvm-svn: 185318 --- .../lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs') 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]++; +} -- cgit v1.2.3