cxxonly.cxx 361 B

1234567891011121314151617181920212223
  1. #include "libcxx1.h"
  2. #include "libcxx2.h"
  3. #ifdef _MSC_VER
  4. extern int testCPP;
  5. #endif
  6. #include <stdio.h>
  7. int main()
  8. {
  9. #ifdef _MSC_VER
  10. testCPP = 1;
  11. #endif
  12. if (LibCxx1Class::Method() != 2.0) {
  13. printf("Problem with libcxx1\n");
  14. return 1;
  15. }
  16. if (LibCxx2Class::Method() != 1.0) {
  17. printf("Problem with libcxx2\n");
  18. return 1;
  19. }
  20. return 0;
  21. }