1 // RUN: %clang_analyze_cc1 -Wno-array-bounds -analyzer-checker=core,alpha.security.ArrayBound -analyzer-store=region -verify %s
4 // Once we better handle modeling of sizes of VLAs, we can pull this back
7 void sizeof_vla(int a
) {
11 y
[4] = 4; // no-warning
12 y
[5] = 5; // expected-warning{{out-of-bound}}
16 void sizeof_vla_2(int a
) {
19 int y
[sizeof(x
) / sizeof(char)];
20 y
[4] = 4; // no-warning
21 y
[5] = 5; // expected-warning{{out-of-bound}}
25 void sizeof_vla_3(int a
) {
28 int y
[sizeof(*&*&*&x
)];
29 y
[4] = 4; // no-warning
30 y
[5] = 5; // expected-warning{{out-of-bound}}