mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Fix death tests in -Asserts builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,6 +15,7 @@ using namespace llvm;
|
||||
namespace {
|
||||
|
||||
#ifdef GTEST_HAS_DEATH_TEST
|
||||
#ifndef NDEBUG
|
||||
TEST(LeakDetector, Death1) {
|
||||
LeakDetector::addGarbageObject((void*) 1);
|
||||
LeakDetector::addGarbageObject((void*) 2);
|
||||
@ -25,5 +26,6 @@ TEST(LeakDetector, Death1) {
|
||||
"Cache != o && \"Object already in set!\"");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user