biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3869e8f
)
Fix test of not_null
author
Mark Abraham
<mark.j.abraham@gmail.com>
Wed, 3 Feb 2021 12:28:19 +0000
(13:28 +0100)
committer
Paul Bauer
<paul.bauer.q@gmail.com>
Wed, 3 Feb 2021 12:45:32 +0000
(12:45 +0000)
Inadvertently removed too much code
Refs #3893
src/gromacs/compat/tests/pointers.cpp
patch
|
blob
|
history
diff --git
a/src/gromacs/compat/tests/pointers.cpp
b/src/gromacs/compat/tests/pointers.cpp
index a7a6b841814034f6c5ceadb07ba09fc2643aff5d..e7201196646b5721d5e604682b2a55822db083cd 100644
(file)
--- a/
src/gromacs/compat/tests/pointers.cpp
+++ b/
src/gromacs/compat/tests/pointers.cpp
@@
-61,8
+61,10
@@
TEST(NotNullConstruction, Works)
// shared_ptr<int> is nullptr assignable
not_null<std::shared_ptr<int>> sharedPointer(std::make_shared<int>(10));
+#ifndef NDEBUG
int* nullPointer = nullptr;
GMX_EXPECT_DEATH_IF_SUPPORTED(not_null<int*> invalidNullPointer(nullPointer), "");
+#endif
int value = 20;
int* validPointer = &value;