diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2018-08-18 04:16:50 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2018-08-18 04:16:50 +0000 |
commit | 526a31a5a40ec98e71b415888d07960c9b796ab1 (patch) | |
tree | 294c9a66f2938dd43c474aefa3d731b29105f340 /debuginfo-tests | |
parent | bc94ae437f301a831269baafb157d92e5b628417 (diff) |
Revert "Add a basic integration test for C++ smart pointers"
This reverts commit 73786631984289b3d601034b2bf4ba2b8f5845eb.
Revert r339961 since its causing debuginfo-tests to fail:
http://green.lab.llvm.org/green/job/clang-stage1-configure-RA/48514/
rdar://problem/43449629
llvm-svn: 340119
Diffstat (limited to 'debuginfo-tests')
-rw-r--r-- | debuginfo-tests/smart-ptr-1.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/debuginfo-tests/smart-ptr-1.cpp b/debuginfo-tests/smart-ptr-1.cpp deleted file mode 100644 index 3be26b9ef971..000000000000 --- a/debuginfo-tests/smart-ptr-1.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// RUN: %clangxx -std=c++14 %target_itanium_abi_host_triple -g %s -o %t.O0.out -// RUN: %test_debuginfo %s %t.O0.out - -#include <memory> - -static volatile int sink; - -static void use_shared_ptr(std::shared_ptr<int> ptr) { - // DEBUGGER: break 10 - sink = *ptr; -} - -static void use_unique_ptr(std::unique_ptr<int> ptr) { - // DEBUGGER: break 15 - sink = *ptr; -} - -int main() { - auto sp_1 = std::make_shared<int>(1234); - use_shared_ptr(sp_1); - - auto up_1 = std::make_unique<int>(5678); - use_unique_ptr(std::move(up_1)); - - return 0; -} - -// DEBUGGER: r - -// (at line 10) -// DEBUGGER: p ptr -// CHECK: shared_ptr<int> -// CHECK-SAME: 1234 - -// DEBUGGER: c - -// (at line 16) -// DEBUGGER: p ptr -// CHECK: unique_ptr<int> -// TODO: lldb's unique_ptr data formatter doesn't pretty-print its wrapped -// object. |