You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
350 B

// RUN: %clang_analyze_cc1 %s -verify \
// RUN: -analyzer-checker=core \
// RUN: -analyzer-config core.CallAndMessage:ArgPointeeInitializedness=true
void f(const int *end);
void g(const int (&arrr)[10]) {
f(arrr); // expected-warning{{1st function call argument is a pointer to uninitialized value}}
}
void h() {
int arr[10];
g(arr);
}