Home | History | Annotate | Download | only in Analysis

Lines Matching refs:x1

33   const int &x1 = get_value(); // expected-note {{binding reference variable 'x1' here}}
34 const int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
45 int x1;
46 int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
47 return &x2; // expected-warning{{Address of stack memory associated with local variable 'x1' returned}} expected-warning {{address of stack memory associated with local variable 'x1' returned}}
51 int x1;
52 int *const &x2 = &x1; // expected-note {{binding reference variable 'x2' here}}
53 return x2; // expected-warning {{address of stack memory associated with local variable 'x1' returned}} expected-warning {{Address of stack memory associated with local variable 'x1' returned to caller}}
57 const int &x1 = get_value(); // expected-note {{binding reference variable 'x1' here}}
58 const int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}