summaryrefslogtreecommitdiffstats
path: root/Tests/CxxOnly/cxxonly.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-09-02 22:02:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-09-02 22:02:57 (GMT)
commitd26cd46989b4e1170cbebc97ae3b6b30395158db (patch)
treea10cf2510b18cb3344964a97baa2020305ca747c /Tests/CxxOnly/cxxonly.cxx
parentced61f5722d65525fd4b8dbf96d5ea8f254099c2 (diff)
downloadCMake-d26cd46989b4e1170cbebc97ae3b6b30395158db.zip
CMake-d26cd46989b4e1170cbebc97ae3b6b30395158db.tar.gz
CMake-d26cd46989b4e1170cbebc97ae3b6b30395158db.tar.bz2
Only use .CPP .CXX and .C++ do not work by default with g+++.
Diffstat (limited to 'Tests/CxxOnly/cxxonly.cxx')
-rw-r--r--Tests/CxxOnly/cxxonly.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Tests/CxxOnly/cxxonly.cxx b/Tests/CxxOnly/cxxonly.cxx
index 2996e65..bd4fd59 100644
--- a/Tests/CxxOnly/cxxonly.cxx
+++ b/Tests/CxxOnly/cxxonly.cxx
@@ -1,14 +1,12 @@
#include "libcxx1.h"
#include "libcxx2.h"
extern int testCPP;
-extern int testCXX;
-extern int testCplusplus;
#include <stdio.h>
int main ()
{
- testCPP = testCXX= testCplusplus = 1;
+ testCPP = 1;
if ( LibCxx1Class::Method() != 2.0 )
{
printf("Problem with libcxx1\n");