https://github.com/Kitware/CMake
Raw File
Tip revision: 02edf08be2b9476f442b702c6c00447912425cc2 authored by Brad King on 15 February 2018, 13:42:07 UTC
Merge branch 'export-android-mk' into release-3.11
Tip revision: 02edf08
cxxonly.cxx
#include "libcxx1.h"
#include "libcxx2.h"
#ifdef _MSC_VER
extern int testCPP;
#endif

#include <stdio.h>

int main()
{
#ifdef _MSC_VER
  testCPP = 1;
#endif
  if (LibCxx1Class::Method() != 2.0) {
    printf("Problem with libcxx1\n");
    return 1;
  }
  if (LibCxx2Class::Method() != 1.0) {
    printf("Problem with libcxx2\n");
    return 1;
  }
  return 0;
}
back to top