| //===-- CleanUpTest.cpp -----------------------------------------*- C++ -*-===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| #include "lldb/Utility/CleanUp.h" |
| using namespace lldb_private; |
| TEST(CleanUpTest, no_args) { |
| CleanUp cleanup([&] { f = true; }); |
| TEST(CleanUpTest, multiple_args) { |
| [](bool arg1, bool *arg2, bool &arg3) { |
| TEST(CleanUpTest, disable) { |
| CleanUp cleanup([&] { f = true; }); |