summaryrefslogtreecommitdiffstats
path: root/Tests/CxxOnly/cxxonly.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-07-21 15:43:26 (GMT)
committerBrad King <brad.king@kitware.com>2006-07-21 15:43:26 (GMT)
commit673e3f8964f124d65731a93fb5fdc8d6fa760ec4 (patch)
treebba3378e0028a2a564b516a46dd9d13b19aaf8c5 /Tests/CxxOnly/cxxonly.cxx
parent0189ce3424e15aaa82e61c7f05875062b8d25ca1 (diff)
downloadCMake-673e3f8964f124d65731a93fb5fdc8d6fa760ec4.zip
CMake-673e3f8964f124d65731a93fb5fdc8d6fa760ec4.tar.gz
CMake-673e3f8964f124d65731a93fb5fdc8d6fa760ec4.tar.bz2
ENH: Adding C++-only test.
Diffstat (limited to 'Tests/CxxOnly/cxxonly.cxx')
-rw-r--r--Tests/CxxOnly/cxxonly.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/CxxOnly/cxxonly.cxx b/Tests/CxxOnly/cxxonly.cxx
new file mode 100644
index 0000000..99ccf3b
--- /dev/null
+++ b/Tests/CxxOnly/cxxonly.cxx
@@ -0,0 +1,19 @@
+#include "libcxx1.h"
+#include "libcxx2.h"
+
+#include <stdio.h>
+
+int main ()
+{
+ 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;
+}