1//===----------- shared-lib-test-so.cc --------------------------*- C++ -*-===// 2// 3// This file is distributed under the University of Illinois Open Source 4// License. See LICENSE.TXT for details. 5// 6//===----------------------------------------------------------------------===// 7// 8// This file is a part of AddressSanitizer, an address sanity checker. 9// 10//===----------------------------------------------------------------------===// 11 12#include <stdio.h> 13 14int pad[10]; 15int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 16 17extern "C" 18void inc(int index) { 19 GLOB[index]++; 20} 21