Home | History | Annotate | Download | only in Analysis

Lines Matching defs:x2

38   const int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
39 return x2; // expected-warning{{Address of stack memory associated with temporary object of type 'int' returned}} expected-warning {{returning reference to local temporary}}
50 int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
51 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}}
56 int *const &x2 = &x1; // expected-note {{binding reference variable 'x2' here}}
57 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}}
62 const int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
63 return &x2; // expected-warning{{Address of stack memory associated with temporary object of type 'int' returned}} expected-warning {{returning address of local temporary}}