Advertisement
Guest User

crash hippomock

a guest
Jul 23rd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. // ConsoleApplication1.cpp : définit le point d'entrée pour l'application console.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "hippomocks.h"
  6.  
  7.  
  8. struct Res
  9. {
  10.     int i;
  11.     int u;
  12.     int t;
  13. };
  14.  
  15. void func(Res * res)
  16. {
  17.  
  18. }
  19.  
  20. int _tmain(int argc, _TCHAR* argv[])
  21. {
  22.     MockRepository mocks;
  23.     Res rep = { 0, 1, 2 };
  24.     Res res = { 4, 5, 6 };
  25.  
  26.     mocks.ExpectCallFunc(func).With(Out(rep));
  27.  
  28.     func(&res);
  29.  
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement