diff --git a/testsuite/.test-rules.make b/testsuite/.test-rules.make
index 58ef75db74c1f3d0d257be3d00c0ceb61dc9cb55..4a6a710c87741bc67b4532e81a86980828ad15d4 100644
--- a/testsuite/.test-rules.make
+++ b/testsuite/.test-rules.make
@@ -106,3 +106,6 @@ yarrow-test$(EXEEXT): yarrow-test.$(OBJEXT)
 sha1-huge-test$(EXEEXT): sha1-huge-test.$(OBJEXT)
 	$(LINK) sha1-huge-test.$(OBJEXT) $(TEST_OBJS) -o sha1-huge-test$(EXEEXT)
 
+cxx-test$(EXEEXT): cxx-test.$(OBJEXT)
+	$(LINK_CXX) cxx-test.$(OBJEXT) $(TEST_OBJS) -o cxx-test$(EXEEXT)
+