1 | typedef int TTT; |
---|---|
2 | typedef int &td_int_ref; |
3 | |
4 | int main() { |
5 | int i = 0; |
6 | // references to typedefs |
7 | TTT &l_ref = i; |
8 | TTT &&r_ref = static_cast<TTT &&>(i); |
9 | // typedef of a reference |
10 | td_int_ref td_to_ref_type = i; |
11 | |
12 | return l_ref; // break here |
13 | } |
14 |