diff options
author | Vedant Kumar <vsk@apple.com> | 2018-08-20 19:53:33 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-08-20 19:53:33 +0000 |
commit | a1de29d55115787c5ddd5837cffea95e46dd0c2e (patch) | |
tree | 44282a2725689a173f1c576e8ff0e24144de5cad /debuginfo-tests | |
parent | ebcf257318c944461988c5bce8e2beea36965bc7 (diff) |
Revert "(Retry) Add a basic integration test for C++ smart pointers"
This reverts r340189. The new test is still failing on some
Apple-internal bots.
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 5448e7dc2ee..00000000000 --- 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 -// UNSUPPORTED: apple-lldb-pre-1000 -#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. |