// RUN: %clang_analyze_cc1 -analyzer-checker=debug.ExprInspection -Wno-pointer-to-int-cast -verify %s
void ;
void ;
void ;
void ;
void ;
int ;
void
// These tests verify the reaping of symbols that are only referenced as
// index values in element regions. Most of the time, depending on where
// the element region, as Loc value, is stored, it is possible to
// recover the index symbol in checker code, which is also demonstrated
// in the return_ptr_range.c test file.
int arr;
int *
void
int *ptr;
void
;
s2;
;
;
;
void
void
// Test below checks lifetime of SymbolRegionValue in certain conditions.
int **ptrptr;
void // no-warning
int *
void // expected-warning{{SYMBOL DEAD}}
void // expected-warning{{SYMBOL DEAD}}
void // expected-warning{{SYMBOL DEAD}}
void
void
void