diff options
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]++; +} |