1#include <stdio.h>
2
3void foo (int &&i)
4{
5 printf(format: "%d\n", i); // breakpoint 1
6}
7
8int main()
9{
10 foo(i: 3);
11 return 0; // breakpoint 2
12}
13

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of lldb/test/API/lang/cpp/rvalue-references/main.cpp