diff options
author | Sean Callanan <scallanan@apple.com> | 2012-05-21 23:31:51 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-05-21 23:31:51 +0000 |
commit | ce8af862ae3c39fb9109be955794d94a0e30549c (patch) | |
tree | 6f4cd5c8c1cbb53d6f9d706bdc3935c16cb16fee /lldb/test/lang/cpp/rvalue-references/main.cpp | |
parent | 2fe1ed3e0d7f0f8509eaf8b938f06b8ad2d6f7c1 (diff) | |
download | bcm5719-llvm-ce8af862ae3c39fb9109be955794d94a0e30549c.tar.gz bcm5719-llvm-ce8af862ae3c39fb9109be955794d94a0e30549c.zip |
Added support for rvalue references in debug information
(actually, mainly just hooked up support that was already
there). Added a test case, although it's expected to fail
right now unless you're using top-of-tree LLVM.
llvm-svn: 157220
Diffstat (limited to 'lldb/test/lang/cpp/rvalue-references/main.cpp')
-rw-r--r-- | lldb/test/lang/cpp/rvalue-references/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/lang/cpp/rvalue-references/main.cpp b/lldb/test/lang/cpp/rvalue-references/main.cpp new file mode 100644 index 00000000000..6da34c73f10 --- /dev/null +++ b/lldb/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 +} |