// RUN: %clang_cc1 -verify=expected -Warray-bounds-pointer-arithmetic %s
// RUN: %clang_cc1 -verify=expected -Warray-bounds-pointer-arithmetic %s -fstrict-flex-arrays=0
// RUN: %clang_cc1 -verify=expected,strict -Warray-bounds-pointer-arithmetic %s -fstrict-flex-arrays=2
// Test case from PR10615
;
void*
void*
// Test case reduced from PR11594
;
void
// Test case reduced from <rdar://problem/11387038>. This resulted in
// an assertion failure because of the typedef instead of an explicit
// constant array type.
;
typedef struct RDar11387038 RDar11387038Array;
;
typedef struct RDar11387038_Table *TPtr;
typedef TPtr *TabHandle;
;
typedef struct RDar11387038_B RDar11387038_B;
void
void