This reverts commit 25909b811a due to
unresolved questions about the behavior of "frame var" and ValueObject
in the presence of references (see the original patch for discussion).
14 lines
249 B
C++
14 lines
249 B
C++
typedef int TTT;
|
|
typedef int &td_int_ref;
|
|
|
|
int main() {
|
|
int i = 0;
|
|
// references to typedefs
|
|
TTT &l_ref = i;
|
|
TTT &&r_ref = static_cast<TTT &&>(i);
|
|
// typedef of a reference
|
|
td_int_ref td_to_ref_type = i;
|
|
|
|
return l_ref; // break here
|
|
}
|