fork(2) download
  1.  
  2. typedef struct longlong
  3. {
  4. unsigned long low;
  5. long high;
  6. }
  7. longlong;
  8.  
  9. typedef longlong Foo;
  10.  
  11.  
  12. struct FooStruct
  13. {
  14. private:
  15. Foo bar;
  16.  
  17. public:
  18. void SetBar(Foo m)
  19. {
  20. bar = m;
  21. }
  22.  
  23. Foo GetBar()
  24. {
  25. return bar;
  26. }
  27. };
  28.  
  29. int main()
  30. {
  31. FooStruct f;
  32. Foo m1 = { 1,1 };
  33. Foo m2 = { 2,2 };
  34. f.SetBar(m1);
  35. f.GetBar() = m2;
  36. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty