// RUN: %clang_analyze_cc1 -std=c++11 -Wno-array-bounds -analyzer-checker=unix,core,alpha.security.ArrayBoundV2 -verify %s
// Tests doing an out-of-bounds access after the end of an array using:
// - constant integer index
// - constant integer size for buffer
void
void
// Tests doing an out-of-bounds access after the end of an array using:
// - indirect pointer to buffer
// - constant integer index
// - constant integer size for buffer
void
void
// Tests doing an out-of-bounds access before the start of an array using:
// - indirect pointer to buffer, manipulated using simple pointer arithmetic
// - constant integer index
// - constant integer size for buffer
void
void
void
void
// Tests doing an out-of-bounds access before the start of an array using:
// - constant integer index
// - constant integer size for buffer
void
// Tests doing an out-of-bounds access before the start of an array using:
// - indirect pointer to buffer
// - constant integer index
// - constant integer size for buffer
void
// Tests doing an out-of-bounds access before the start of an array using:
// - indirect pointer to buffer, manipulated using simple pointer arithmetic
// - constant integer index
// - constant integer size for buffer
void
// Tests under-indexing
// of a multi-dimensional array
void
// Tests under-indexing
// of a multi-dimensional array
void
// Tests over-indexing
// of a multi-dimensional array
void
// Tests over-indexing
// of a multi-dimensional array
void
// Tests normal access of
// a multi-dimensional array
void
// Tests over-indexing using different types
// array
void
// Tests over-indexing
//if the allocated area is non-array
void
//Tests over-indexing
//if the allocated area size is a runtime parameter
void
//Tests complex arithmetic
//in new expression
void