From: maier Date: Mon, 5 Nov 2012 10:56:28 +0000 (+0000) Subject: Remove old darwin dynacast bug test files X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c49792c096cb936b6c1be6904c483b64b70ed68;p=dealii-svn.git Remove old darwin dynacast bug test files git-svn-id: https://svn.dealii.org/branches/branch_cmake@27394 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/checks/tests/darwin-dynacast-bug b/deal.II/cmake/checks/tests/darwin-dynacast-bug deleted file mode 100644 index 6087c0ae1d..0000000000 --- a/deal.II/cmake/checks/tests/darwin-dynacast-bug +++ /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 -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 index 9c737dd3c3..0000000000 --- a/deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "BaseClass.h" - -template -Base::Base() -{ } - -template -Derived::Derived() -{ } - -template -DerivedDerived::DerivedDerived() -{ } - -template -Base::~Base() -{ } - -template -Derived::~Derived() -{ } - -template -DerivedDerived::~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 index bf087a5877..0000000000 --- a/deal.II/cmake/checks/tests/darwin-dynamic-cast/BaseClass.h +++ /dev/null @@ -1,26 +0,0 @@ -template -class Base -{ -public: - Base(); - ~Base(); - virtual int return_int(){return 321;}; -}; - -template -class Derived : public Base -{ -public: - Derived(); - ~Derived(); - virtual int return_int(){ return 123;} -}; - -template -class DerivedDerived : public Derived -{ -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 index d26cc39d47..0000000000 --- a/deal.II/cmake/checks/tests/darwin-dynamic-cast/main.cc +++ /dev/null @@ -1,17 +0,0 @@ -#include "BaseClass.h" - -int main ( ) -{ - const unsigned int dim = 2; - - DerivedDerived *der = new DerivedDerived(); - - const Base* my_class_base_pointer = der; - - if(dynamic_cast *>(my_class_base_pointer) != 0) - return 0; - else - return 1; -} - -