simple.cpp 767 B

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