From: bangerth Date: Fri, 1 Jul 2011 14:06:18 +0000 (+0000) Subject: Undo last change and document why the code that looked dead was in fact useful. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c77bf68bc5bca4ebe9309a91b7d1e7387d45964;p=dealii-svn.git Undo last change and document why the code that looked dead was in fact useful. git-svn-id: https://svn.dealii.org/trunk@23903 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/slice_vector.cc b/tests/base/slice_vector.cc index fa3ab3be57..ab9220f23e 100644 --- a/tests/base/slice_vector.cc +++ b/tests/base/slice_vector.cc @@ -56,4 +56,9 @@ int main() f(v); make_slice(v, 3, 5); + + // access an element beyond the end + // to verify that we generate an + // exception for that + (void) s[4]; }