1 //===-- asan_globals_test.cc ----------------------------------------------===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is a part of AddressSanitizer, an address sanity checker.
10 // Some globals in a separate file.
11 //===----------------------------------------------------------------------===//
12 #include "asan_test_utils.h"
32 char glob10000
[10000];
33 char glob100000
[100000];
35 static char static10
[10];
37 int GlobalsTest(int zero
) {
38 static char func_static15
[15];
41 func_static15
[zero
] = 0;
42 return glob5
[1] + func_static15
[2];