summaryrefslogtreecommitdiff
path: root/Tests/CxxOnly/cxxonly.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CxxOnly/cxxonly.cxx')
-rw-r--r--Tests/CxxOnly/cxxonly.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/Tests/CxxOnly/cxxonly.cxx b/Tests/CxxOnly/cxxonly.cxx
new file mode 100644
index 000000000..9cf6f2d29
--- /dev/null
+++ b/Tests/CxxOnly/cxxonly.cxx
@@ -0,0 +1,25 @@
+#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;
+}