From: Wolfgang 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-Tag: v8.0.0~3862 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb27eb84c9128bf3d0366853386d6aa61fd97b0b;p=dealii.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]; }