Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/asan/shared-lib-test-1-so.cc @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
//===----------- shared-lib-test-so.cc --------------------------*- C++ -*-===// // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file is a part of AddressSanitizer, an address sanity checker. // //===----------------------------------------------------------------------===// #include <stdio.h> int pad[10]; int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; extern "C" void inc(int index) { GLOB[index]++; }