diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp new file mode 100644 index 00000000000..6da34c73f10 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp @@ -0,0 +1,12 @@ +#include <stdio.h> + +void foo (int &&i) +{ + printf("%d\n", i); // breakpoint 1 +} + +int main() +{ + foo(3); + return 0; // breakpoint 2 +} |