Lines Matching full:local
7 return s; // expected-warning{{reference to stack memory associated with local variable 's' returned}}
13 return s2; // expected-warning {{reference to stack memory associated with local variable 's1' returned}}
20 return s3; // expected-warning {{reference to stack memory associated with local variable 's1' returned}}
25 const int &get_reference1() { return get_value(); } // expected-warning {{returning reference to local temporary}}
29 return x; // expected-warning {{returning reference to local temporary}}
35 return x2; // expected-warning {{returning reference to local temporary}}
47 return &x2; // expected-warning {{address of stack memory associated with local variable 'x1' returned}}
53 return x2; // expected-warning {{address of stack memory associated with local variable 'x1' returned}}
59 return &x2; // expected-warning {{returning address of local temporary}}
70 return &x; // expected-warning {{address of stack memory associated with local variable 's1' returned}}
76 return x; // expected-warning {{returning address of label, which is local}}
84 return qq; // expected-error {{returning block that lives on the local stack}}