Debian Codegraph @

gcc/testsuite/g++.dg/asan/shared-lib-test-1-so.cc

raw
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
14 int pad[10];
15 int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
16
17 extern "C"
18 void inc(int index) {
19 GLOB[index]++;
20 }