Lines Matching defs:const
5 const int& g() {
10 const int& g2() {
16 const int& g3() {
24 static const int &x = 3; // no warning
29 const int &get_reference1() { return get_value(); } // expected-warning{{Address of stack memory associated with temporary object of type 'int' returned}} expected-warning {{returning reference to local temporary}}
31 const int &get_reference2() {
32 const int &x = get_value(); // expected-note {{binding reference variable 'x' here}}
36 const int &get_reference3() {
37 const int &x1 = get_value(); // expected-note {{binding reference variable 'x1' here}}
38 const int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
56 int *const &x2 = &x1; // expected-note {{binding reference variable 'x2' here}}
60 const int *f4() {
61 const int &x1 = get_value(); // expected-note {{binding reference variable 'x1' here}}
62 const int &x2 = x1; // expected-note {{binding reference variable 'x2' here}}
79 void *const &x = &&label; // expected-note {{binding reference variable 'x' here}}
106 operator bool() const { return this; }
111 operator intptr_t() const { return reinterpret_cast<intptr_t>(this); }
116 operator const void *() const { return this; }
131 return reinterpret_cast<intptr_t>(static_cast<const void *>(obj)); // expected-warning{{Address of stack memory associated with local variable 'obj' returned to caller}}