Move ASan lit-tests under test/asan
[blocksruntime.git] / test / asan / TestCases / SharedLibs / shared-lib-test-so.cc
blob6ef565ce47b3115dd3d6f6c49a501079ad7fcb9a
1 //===----------- shared-lib-test-so.cc --------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is a part of AddressSanitizer, an address sanity checker.
12 //===----------------------------------------------------------------------===//
13 #include <stdio.h>
15 int pad[10];
16 int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
18 extern "C"
19 void inc(int index) {
20 GLOB[index]++;
23 extern "C"
24 void inc2(int *a, int index) {
25 a[index]++;