cpptcl1.cpp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // compile as
  2. // gcc -fno-exceptions -c -o cpptestclass1.o cpptestclass1.cpp
  3. class TestClass
  4. {
  5. public:
  6. static void Test1();
  7. /* boolean */
  8. static void Test2(bool aArg1);
  9. /* unsigned ordinals */
  10. static void Test3(unsigned char aArg1);
  11. static void Test4(unsigned short aArg1);
  12. static void Test5(unsigned int aArg1);
  13. static void Test6(unsigned long long aArg1);
  14. /* signed ordinals */
  15. static void Test7(signed char aArg1);
  16. static void Test8(signed short aArg1);
  17. static void Test9(signed int aArg1);
  18. static void Test10(signed long long aArg1);
  19. /* floating point */
  20. static void Test11(float aArg1);
  21. static void Test12(double aArg1);
  22. /* chars */
  23. static void Test13(char aArg1);
  24. static void Test14(wchar_t aArg1);
  25. /* pointers */
  26. static void Test15(void* aArg1);
  27. static void Test16(char* aArg1);
  28. static void Test17(wchar_t* aArg1);
  29. static void Test18(unsigned int* aArg1);
  30. static void Test19(float* aArg1);
  31. /* by reference */
  32. static void Test20(signed int& aArg1);
  33. static void Test21(unsigned int& aArg1);
  34. static void Test22(void*& aArg1);
  35. static void Test23(char& aArg1);
  36. static void Test24(float& aArg1);
  37. /* combinations */
  38. static void Test25(unsigned char aArg1, unsigned short aArg2, unsigned int aArg3, unsigned long long aArg4);
  39. static void Test26(void* aArg1, char& aArg2, float aArg3);
  40. };
  41. void TestClass::Test1() { };
  42. /* boolean */
  43. void TestClass::Test2(bool aArg1){ };
  44. /* unsigned ordinals */
  45. void TestClass::Test3(unsigned char aArg1){ };
  46. void TestClass::Test4(unsigned short aArg1){ };
  47. void TestClass::Test5(unsigned int aArg1){ };
  48. void TestClass::Test6(unsigned long long aArg1){ };
  49. /* signed ordinals */
  50. void TestClass::Test7(signed char aArg1){ };
  51. void TestClass::Test8(signed short aArg1){ };
  52. void TestClass::Test9(signed int aArg1){ };
  53. void TestClass::Test10(signed long long aArg1){ };
  54. /* floating point */
  55. void TestClass::Test11(float aArg1){ };
  56. void TestClass::Test12(double aArg1){ };
  57. /* chars */
  58. void TestClass::Test13(char aArg1){ };
  59. void TestClass::Test14(wchar_t aArg1){ };
  60. /* pointers */
  61. void TestClass::Test15(void* aArg1){ };
  62. void TestClass::Test16(char* aArg1){ };
  63. void TestClass::Test17(wchar_t* aArg1){ };
  64. void TestClass::Test18(unsigned int* aArg1){ };
  65. void TestClass::Test19(float* aArg1){ };
  66. /* by reference */
  67. void TestClass::Test20(signed int& aArg1){ };
  68. void TestClass::Test21(unsigned int& aArg1){ };
  69. void TestClass::Test22(void*& aArg1){ };
  70. void TestClass::Test23(char& aArg1){ };
  71. void TestClass::Test24(float& aArg1){ };
  72. /* combinations */
  73. void TestClass::Test25(unsigned char aArg1, unsigned short aArg2, unsigned int aArg3, unsigned long long aArg4){ };
  74. void TestClass::Test26(void* aArg1, char& aArg2, float aArg3){ };