mirror of https://github.com/qpdf/qpdf.git
Test empty function detection
This commit is contained in:
parent
39bfa01307
commit
4cbe2abcc0
|
@ -48,6 +48,12 @@ void do_functional()
|
|||
};
|
||||
|
||||
assert(make_addr_lambda(6)(8) == 14);
|
||||
|
||||
// nullptr and {} are empty functions
|
||||
std::function<void()> f1 = {};
|
||||
assert(! f1);
|
||||
std::function<void()> f2 = nullptr;
|
||||
assert(! f2);
|
||||
}
|
||||
|
||||
// Integer types, type traits
|
||||
|
|
Loading…
Reference in New Issue