CMake/Tests/CxxOnly/cxxonly.cxx

24 lines
361 B
C++
Raw Normal View History

2006-07-21 19:43:26 +04:00
#include "libcxx1.h"
#include "libcxx2.h"
#ifdef _MSC_VER
extern int testCPP;
#endif
2006-07-21 19:43:26 +04:00
#include <stdio.h>
int main()
2006-07-21 19:43:26 +04:00
{
#ifdef _MSC_VER
testCPP = 1;
#endif
if (LibCxx1Class::Method() != 2.0) {
2006-07-21 19:43:26 +04:00
printf("Problem with libcxx1\n");
return 1;
}
if (LibCxx2Class::Method() != 1.0) {
2006-07-21 19:43:26 +04:00
printf("Problem with libcxx2\n");
return 1;
}
2006-07-21 19:43:26 +04:00
return 0;
}