summaryrefslogtreecommitdiffstats
path: root/Tests/SwigTest/example.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@sap.com>2018-01-29 08:46:51 (GMT)
committerMarc Chevrier <marc.chevrier@sap.com>2018-02-14 07:35:04 (GMT)
commitd6048bd153979c268a2943b26fd71be7c5f11251 (patch)
treeb45637ba609ca2e429249c7baa084a6839fde99b /Tests/SwigTest/example.cxx
parentd870148537319da2e86237cbd8baf6815975e594 (diff)
downloadCMake-d6048bd153979c268a2943b26fd71be7c5f11251.zip
CMake-d6048bd153979c268a2943b26fd71be7c5f11251.tar.gz
CMake-d6048bd153979c268a2943b26fd71be7c5f11251.tar.bz2
UseSWIG: Re-work test framework
Diffstat (limited to 'Tests/SwigTest/example.cxx')
-rw-r--r--Tests/SwigTest/example.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/Tests/SwigTest/example.cxx b/Tests/SwigTest/example.cxx
deleted file mode 100644
index 961d6dd..0000000
--- a/Tests/SwigTest/example.cxx
+++ /dev/null
@@ -1,33 +0,0 @@
-/* File : example.c */
-
-#include "example.h"
-#define M_PI 3.14159265358979323846
-
-/* Move the shape to a new location */
-void Shape::move(double dx, double dy)
-{
- x += dx;
- y += dy;
-}
-
-int Shape::nshapes = 0;
-
-double Circle::area(void)
-{
- return M_PI * radius * radius;
-}
-
-double Circle::perimeter(void)
-{
- return 2 * M_PI * radius;
-}
-
-double Square::area(void)
-{
- return width * width;
-}
-
-double Square::perimeter(void)
-{
- return 4 * width;
-}