diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp')
-rw-r--r-- | packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp b/packages/Python/lldbsuite/test/lang/cpp/rvalue-references/main.cpp new file mode 100644 index 0000000..6da34c7 --- /dev/null +++ b/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 +} |