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. 11// 12//===----------------------------------------------------------------------===// 13#include <stdio.h> 14 15int pad[10]; 16int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 17 18extern "C" 19void inc(int index) { 20 GLOB[index]++; 21} 22