commit | 4b68df32835d04d94552cf577084d247b9c44696 | [log] [tgz] |
---|---|---|
author | onqtam <vik.kirilov@gmail.com> | Fri Mar 17 20:45:54 2017 +0200 |
committer | onqtam <vik.kirilov@gmail.com> | Tue May 16 00:22:15 2017 +0300 |
tree | 6f36184bc3810c494fe50134b07150ac79b0e362 | |
parent | 2d93e0488ce1c3a0bffe9213243f25bf60722494 [diff] [blame] |
builds with -fno-exceptions should pass now - relates #12
diff --git a/examples/disabled/test.cpp b/examples/disabled/test.cpp index 36556d0..9c25bcb 100644 --- a/examples/disabled/test.cpp +++ b/examples/disabled/test.cpp
@@ -14,7 +14,11 @@ static int throws(bool in) { if(in) +#ifndef DOCTEST_CONFIG_NO_EXCEPTIONS throw "whops!"; +#else // DOCTEST_CONFIG_NO_EXCEPTIONS + return 0; +#endif // DOCTEST_CONFIG_NO_EXCEPTIONS return 42; }