diff options
| author | Martin Hořeňovský | 2020-03-19 13:32:45 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-01 09:24:26 +0200 |
| commit | 5198fd3c9a4cd943786020abbdfc15dc5789be6f (patch) | |
| tree | 1cd75dc8f31df532055d0ef2b755c64273048f59 /tests/SelfTest/UsageTests | |
| parent | 08f8a81b2c7e34d1333ef8629a36930ead3cb30e (diff) | |
| download | catch3-5198fd3c9a4cd943786020abbdfc15dc5789be6f.tar.gz | |
Fix compilation error when lambdas are used in assertions
This is a partial revert of b7b346c3e5603.
Diffstat (limited to 'tests/SelfTest/UsageTests')
| -rw-r--r-- | tests/SelfTest/UsageTests/Compilation.tests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/SelfTest/UsageTests/Compilation.tests.cpp b/tests/SelfTest/UsageTests/Compilation.tests.cpp index 839a1662..5a0ab65e 100644 --- a/tests/SelfTest/UsageTests/Compilation.tests.cpp +++ b/tests/SelfTest/UsageTests/Compilation.tests.cpp @@ -231,6 +231,9 @@ namespace { namespace CompilationTests { } } + TEST_CASE("Lambdas in assertions") { + REQUIRE([]() { return true; }()); + } }} // namespace CompilationTests |