cmake/Tests/CxxOnly/cxxonly.cxx

26 lines
392 B
C++
Raw Normal View History

#include "libcxx1.h"
#include "libcxx2.h"
2020-08-30 11:54:41 +02:00
extern int testC;
2010-11-13 01:00:53 +02:00
#ifdef _MSC_VER
extern int testCPP;
#endif
#include <stdio.h>
2016-07-09 11:21:54 +02:00
int main()
{
2020-08-30 11:54:41 +02:00
testC = 1;
2010-11-13 01:00:53 +02:00
#ifdef _MSC_VER
testCPP = 1;
#endif
2016-07-09 11:21:54 +02:00
if (LibCxx1Class::Method() != 2.0) {
printf("Problem with libcxx1\n");
return 1;
2016-07-09 11:21:54 +02:00
}
if (LibCxx2Class::Method() != 1.0) {
printf("Problem with libcxx2\n");
return 1;
2016-07-09 11:21:54 +02:00
}
return 0;
}