diff options
| author | Martin Hořeňovský | 2020-03-19 13:32:45 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-03-19 13:32:45 +0100 |
| commit | 3a33315ff8e047b1ff46b1ee2a5be3fdd7fbac08 (patch) | |
| tree | 1ad8ba4cba60b9b6f49769a5f1e02413120b50fb /projects/SelfTest/UsageTests/Compilation.tests.cpp | |
| parent | 5f94c8dafb56c06892ef37b181df88b46bec0156 (diff) | |
| download | catch3-3a33315ff8e047b1ff46b1ee2a5be3fdd7fbac08.tar.gz | |
Fix compilation error when lambdas are used in assertions
This is a partial revert of b7b346c3e5603.
Diffstat (limited to 'projects/SelfTest/UsageTests/Compilation.tests.cpp')
| -rw-r--r-- | projects/SelfTest/UsageTests/Compilation.tests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/SelfTest/UsageTests/Compilation.tests.cpp b/projects/SelfTest/UsageTests/Compilation.tests.cpp index d2ccce05..0baf2842 100644 --- a/projects/SelfTest/UsageTests/Compilation.tests.cpp +++ b/projects/SelfTest/UsageTests/Compilation.tests.cpp @@ -228,6 +228,9 @@ namespace { namespace CompilationTests { REQUIRE( 0 == y.v ); } + TEST_CASE("Lambdas in assertions") { + REQUIRE([]() { return true; }()); + } }} // namespace CompilationTests |