diff --git a/test/build/protobuf.cc b/test/build/protobuf.cc
new file mode 100644
index 0000000000000000000000000000000000000000..59ead111a66bbea71aae85b1b6cc0d395a1bdf5a
--- /dev/null
+++ b/test/build/protobuf.cc
@@ -0,0 +1,10 @@
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/descriptor.pb.h>
+
+bool protobuf_test(const google::protobuf::MethodDescriptor *method) {
+  return method->client_streaming() || method->server_streaming();
+}
+
+int main() {
+  return 0;
+}