diff --git a/test/Jamfile.v2 b/test/Jamfile.v2
index b67088d..4a59edb 100644
--- a/test/Jamfile.v2
+++ b/test/Jamfile.v2
@@ -61,7 +61,11 @@ run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : :
shared : single_instance_lib_shared ;
system-run before_main_test.cpp ;
-run-fail throws_assign_fail.cpp ;
+
+run-fail throws_assign_fail.cpp : : :
+ # GCC 12 catches this at compile time with a warning
+ gcc,release:no ;
+
system-run constexpr_test.cpp ;
system-run win32_hresult_test.cpp ;