title: Gmock setting out parameter
body: <p>In a GMock test method, I need to set the out parameter to a variable's address, so that the out parameter of <code>dequeue()</code>, which is <code>data</code> points to the variable <code>ch</code>:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>MOCK_METHOD1(dequeue, void(void* data));
  
  char ch = 'm';
  void* a = (void*)&amp;ch;
  
  EXPECT_CALL(FQO, dequeue(_))
      .WillOnce(/*here I need to set argument to a*/);
  </code></pre>
  
  <p>I tried to figure out <a href="https://code.google.com/p/googlemock/wiki/V1_7_CheatSheet#Side_Effects" rel="nofollow">side effects</a> but keep getting an error.</p>