Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-04-01 11:02:56 +0200
committerMartin Hořeňovský2026-04-01 11:02:56 +0200
commit8492fd444e42f331f48611d2b5ef11c8ce338423 (patch)
treeb95a7a03a3973ccc90a4f096df828ce41dd2540f /tests/SelfTest
parentfe2a20ab555ec28af47acaeafdad6d0872f7cb82 (diff)
downloadcatch3-8492fd444e42f331f48611d2b5ef11c8ce338423.tar.gz
Ignore Wunreachable-code-return in Generators.tests.cpp
Diffstat (limited to 'tests/SelfTest')
-rw-r--r--tests/SelfTest/UsageTests/Generators.tests.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/SelfTest/UsageTests/Generators.tests.cpp b/tests/SelfTest/UsageTests/Generators.tests.cpp
index 3394b4b5..6eaf33a8 100644
--- a/tests/SelfTest/UsageTests/Generators.tests.cpp
+++ b/tests/SelfTest/UsageTests/Generators.tests.cpp
@@ -281,6 +281,11 @@ TEST_CASE("#1913 - GENERATEs can share a line", "[regression][generators]") {
REQUIRE(i != j);
}
+#if defined( __clang__ )
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunreachable-code-return"
+#endif
+
namespace {
class test_generator : public Catch::Generators::IGenerator<int> {
public:
@@ -306,6 +311,10 @@ namespace {
} // namespace
+#if defined( __clang__ )
+# pragma clang diagnostic pop
+#endif
+
TEST_CASE( "#2615 - Throwing in constructor generator fails test case but does not abort",
"[!shouldfail][regression][generators]" ) {
// this should fail the test case, but not abort the application