- Don't crash on the "uninitialized" test.

This commit is contained in:
Sylvain Pion 1999-10-07 16:18:32 +00:00
parent 31368a2924
commit f24a5059fe
1 changed files with 2 additions and 0 deletions

View File

@ -23,10 +23,12 @@ CGAL::Interval_nt_advanced add( const CGAL::Interval_nt_advanced & a,
template < class NT >
void test (const NT &)
{
CGAL::Failure_behaviour backup = CGAL::set_error_behaviour(CGAL::CONTINUE);
NT a;
NT b=1;
NT c;
c = b+a; // a is used but not initialized.
CGAL::set_error_behaviour(backup);
}
int main()