Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / asan / shared-lib-test-1-so.cc
blob7548bc02a502fdd025100c490440fac59c149364
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 //===----------------------------------------------------------------------===//
12 #include <stdio.h>
14 int pad[10];
15 int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
17 extern "C"
18 void inc(int index) {
19 GLOB[index]++;