diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index 560adee14e3a..f9a8bea9dce2 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -49,6 +49,10 @@ public:
 		value_ = value;
 	}
 
+	void methodWithReference(const int &value)
+	{
+	}
+
 private:
 	Status status_;
 	int value_;
@@ -119,6 +123,14 @@ protected:
 			return TestFail;
 		}
 
+		/*
+		 * Test invoking a method that takes reference arguments. This
+		 * targets compilation, there's no need to check runtime
+		 * results.
+		 */
+		object_.invokeMethod(&InvokedObject::methodWithReference,
+				     ConnectionTypeBlocking, 42);
+
 		return TestPass;
 	}
 
