Commit 6640b375 authored by Roland Levillain's avatar Roland Levillain
Browse files

Use TESTS_CXXFLAGS in Static.

	* tests/Makefile.am (TESTS_CXXFLAGS): New.
	Append it to...
	(CXXFLAGS): ...this variable.
	* tests/tour.cc (dynamic_hierarchy::A, dynamic_hierarchy::B)
	(dynamic_hierarchy::C): Add missing virtual destructors.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@595 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent c465f415
2006-09-29 Roland Levillain <roland@lrde.epita.fr>
Use TESTS_CXXFLAGS in Static.
* tests/Makefile.am (TESTS_CXXFLAGS): New.
Append it to...
(CXXFLAGS): ...this variable.
* tests/tour.cc (dynamic_hierarchy::A, dynamic_hierarchy::B)
(dynamic_hierarchy::C): Add missing virtual destructors.
2006-09-29 Roland Levillain <roland@lrde.epita.fr>
Work around a bug in g++ 4.1 and 4.2 in tests/vtypes-and-exact.cc.
......
......@@ -9,7 +9,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/static -I$(top_srcdir)/metalic
# when oln.m4 is available in the distribution.
# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
# warn against this, but that's OK).
CXXFLAGS = -O0 -ggdb
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
CXXFLAGS += $(TESTS_CXXFLAGS)
check_PROGRAMS = \
......
......@@ -79,6 +79,8 @@ namespace dynamic_hierarchy
virtual int foo() { return 1; }
// A virtual pure method.
virtual int bar() = 0;
virtual ~A() {}
};
// `B' is a concrete class.
......@@ -88,6 +90,8 @@ namespace dynamic_hierarchy
virtual int foo() { return 2; }
// `B::bar' is defined.
virtual int bar() { return 3; }
virtual ~B() {}
};
// `C' is a concrete class.
......@@ -95,6 +99,8 @@ namespace dynamic_hierarchy
{
// `B::foo' is redefined.
virtual int foo() { return 4; }
virtual ~C() {}
};
} // end of namespace dynamic_hierarchy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment