]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove old darwin dynacast bug test files
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Nov 2012 10:56:28 +0000 (10:56 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Nov 2012 10:56:28 +0000 (10:56 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27394 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/checks/tests/darwin-dynacast-bug [deleted file]
deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.cpp [deleted file]
deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.h [deleted file]
deal.II/cmake/checks/tests/darwin-dynamic-cast/main.cc [deleted file]

diff --git a/deal.II/cmake/checks/tests/darwin-dynacast-bug b/deal.II/cmake/checks/tests/darwin-dynacast-bug
deleted file mode 100644 (file)
index 6087c0a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-dnl -------------------------------------------------------------
-dnl
-dnl Check for a problem with dynamic cast on dynamic libs on
-dnl Mac OS X Snow Leopard. The test is only called on Mac OS X.
-dnl The test is due to Scott Miller <scott.miller@psu.edu>
-dnl
-dnl -------------------------------------------------------------
-AC_DEFUN(DEAL_II_CHECK_DYNAMIC_CAST_BUG,
-[
-  AC_MSG_CHECKING(for dynamic_cast problem with shared libs)
-
-  if (cd contrib/config/tests/darwin-dynamic-cast ; \
-      echo $CXX > compile_line; \
-      $CXX -dynamiclib BaseClass.cpp -o libDynamicCastTestLib.dylib ; \
-      $CXX -L. -lDynamicCastTestLib main.cc -o main ; \
-      ./main) ; then
-    AC_MSG_RESULT(no) ;
-  else
-    AC_MSG_RESULT(yes) ;
-    AC_DEFINE(DEAL_II_HAVE_DARWIN_DYNACAST_BUG, 1,
-              [Defined if the compiler has a bug with dynamic casting
-               and dynamic libraries])
-    if(test "`sw_vers -productVersion`" != "10.8");then
-       CXXFLAGSG="$CXXFLAGSG -mmacosx-version-min=10.4"
-       CXXFLAGSO="$CXXFLAGSO -mmacosx-version-min=10.4"
-       LDFLAGS="$LDFLAGS -mmacosx-version-min=10.4"
-    fi
-  fi
-  rm -f contrib/config/tests/darwin-dynamic-cast/libDynamicCastTestLib.dylib
-  rm -f contrib/config/tests/darwin-dynamic-cast/main.o
-  rm -f contrib/config/tests/darwin-dynamic-cast/main
-])
-
-/* Defined if the compiler has a bug with dynamic casting and dynamic
-   libraries */
-#cmakedefine DEAL_II_HAVE_DARWIN_DYNACAST_BUG
-
diff --git a/deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.cpp b/deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.cpp
deleted file mode 100644 (file)
index 9c737dd..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#include "BaseClass.h"
-
-template<int dim>
-Base<dim>::Base()
-{ }
-
-template<int dim>
-Derived<dim>::Derived()
-{ }
-
-template<int dim>
-DerivedDerived<dim>::DerivedDerived()
-{ }
-
-template<int dim>
-Base<dim>::~Base()
-{ }
-
-template<int dim>
-Derived<dim>::~Derived()
-{ }
-
-template<int dim>
-DerivedDerived<dim>::~DerivedDerived()
-{ }
-
-template class DerivedDerived<3>;
-template class DerivedDerived<2>;
-template class DerivedDerived<1>;
-template class DerivedDerived<0>;
-
-template class Derived<3>;
-template class Derived<2>;
-template class Derived<1>;
-template class Derived<0>;
-
-template class Base<3>;
-template class Base<2>;
-template class Base<1>;
-template class Base<0>;
\ No newline at end of file
diff --git a/deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.h b/deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.h
deleted file mode 100644 (file)
index bf087a5..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-template<int dim>
-class Base
-{
-public:
-       Base();
-       ~Base();
-       virtual int return_int(){return 321;};
-};
-
-template<int dim>
-class Derived : public Base<dim>
-{
-public:
-       Derived();
-       ~Derived();
-       virtual int return_int(){ return 123;}
-};
-
-template<int dim>
-class DerivedDerived : public Derived<dim>
-{
-public:
-       DerivedDerived();
-       ~DerivedDerived();
-       virtual int return_int(){ return 456;}
-};
\ No newline at end of file
diff --git a/deal.II/cmake/checks/tests/darwin-dynamic-cast/main.cc b/deal.II/cmake/checks/tests/darwin-dynamic-cast/main.cc
deleted file mode 100644 (file)
index d26cc39..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "BaseClass.h"
-
-int main ( ) 
-{
-  const unsigned int dim = 2;
-       
-  DerivedDerived<dim> *der = new DerivedDerived<dim>();
-  
-  const Base<dim>* my_class_base_pointer = der;
-  
-  if(dynamic_cast<const Derived<dim> *>(my_class_base_pointer) != 0)
-    return 0;
-  else 
-    return 1;
-}
-
-

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.