simple.cpp 703 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Just produce any code in order to test basic workflow
  2. namespace hmm
  3. {
  4. class A
  5. {
  6. A()
  7. {
  8. /* first funtion */
  9. this->m_member = 10;
  10. if (a & b)
  11. {
  12. for (int i = 0; i < 0 && i > 0; i++)
  13. {
  14. // crazy, right?
  15. }
  16. }
  17. }
  18. int func(int param = 5)
  19. {
  20. class embeded
  21. {
  22. embeded()
  23. {
  24. int a = 10;
  25. if (true)
  26. {
  27. // again crazy
  28. }
  29. while (a == b); // regressed
  30. }
  31. };
  32. if (a);
  33. }
  34. int never(int how_long = 999)
  35. {
  36. while(true)
  37. {
  38. }
  39. return 2; // slightly modified
  40. }
  41. char new_func()
  42. {
  43. // simple
  44. }
  45. char new_func_complex()
  46. {
  47. if (true) {}
  48. return 'A';
  49. }
  50. int m_member = 10;
  51. };
  52. }