1*1c8f999eSKirstóf Umann // RUN: %clang_analyze_cc1 %s -verify \ 2*1c8f999eSKirstóf Umann // RUN: -analyzer-checker=core \ 3*1c8f999eSKirstóf Umann // RUN: -analyzer-config core.CallAndMessage:ArgPointeeInitializedness=true 43bd63ae3SAdam Balogh 53bd63ae3SAdam Balogh void f(const int *end); 63bd63ae3SAdam Balogh g(const int (& arrr)[10])73bd63ae3SAdam Baloghvoid g(const int (&arrr)[10]) { 855725785SAdam Balogh f(arrr); // expected-warning{{1st function call argument is a pointer to uninitialized value}} 93bd63ae3SAdam Balogh } 103bd63ae3SAdam Balogh h()113bd63ae3SAdam Baloghvoid h() { 123bd63ae3SAdam Balogh int arr[10]; 133bd63ae3SAdam Balogh 143bd63ae3SAdam Balogh g(arr); 153bd63ae3SAdam Balogh } 16