aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/dereferencing_references/main.cpp
blob: b64978a9029f814b533851fe09f91cc869094b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}