[debuginfo-tests] r340204 - Revert "(Retry) Add a basic integration test for C++ smart pointers"
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 20 12:53:33 PDT 2018
Author: vedantk
Date: Mon Aug 20 12:53:33 2018
New Revision: 340204
URL: http://llvm.org/viewvc/llvm-project?rev=340204&view=rev
Log:
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.
Removed:
debuginfo-tests/trunk/smart-ptr-1.cpp
Removed: debuginfo-tests/trunk/smart-ptr-1.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/smart-ptr-1.cpp?rev=340203&view=auto
==============================================================================
--- debuginfo-tests/trunk/smart-ptr-1.cpp (original)
+++ debuginfo-tests/trunk/smart-ptr-1.cpp (removed)
@@ -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.
More information about the llvm-commits
mailing list