diff options
author | Enrico Granata <egranata@apple.com> | 2015-12-18 22:41:25 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-12-18 22:41:25 +0000 |
commit | 36f51e4c9724715cceedffc68733345438b464f4 (patch) | |
tree | e6b51c2c59931df2496fe202f638196e011459d8 /lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp | |
parent | be2cfb26d34f6e04eca71fe46126e15b1cfe0d71 (diff) | |
download | bcm5719-llvm-36f51e4c9724715cceedffc68733345438b464f4.tar.gz bcm5719-llvm-36f51e4c9724715cceedffc68733345438b464f4.zip |
Add support for seeing through clang::AutoType in ClangASTContext
This allows LLDB to deal correctly with expression result variables declared via the C++11 'auto' keyword
rdar://problem/23960490
llvm-svn: 256051
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp new file mode 100644 index 00000000000..76fb95e0a34 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp @@ -0,0 +1,16 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include <string> + +int main() +{ + std::string helloworld("hello world"); + return 0; // break here +} |