Files
clang-p2996/lldb/test/API/lang/cpp/dereferencing_references/main.cpp
Pavel Labath 1a684591da Revert "Fix pointer to reference type (#113596)" (#114831)
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).
2024-11-05 16:39:31 +01:00

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
}