diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-07-01 09:15:19 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-07-01 09:15:19 +0000 |
commit | c3832f7788db8df5930cd92ef22edfa204a3a9d0 (patch) | |
tree | 8344c52c0b56561153fbfe7351ec0457e0c55e68 /compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc | |
parent | d6e856f722548428b188d08476603ced0be4a777 (diff) | |
download | bcm5719-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.cc | 5 |
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]++; +} |