]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Undo last change and document why the code that looked dead was in fact useful.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Jul 2011 14:06:18 +0000 (14:06 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Jul 2011 14:06:18 +0000 (14:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@23903 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/slice_vector.cc

index fa3ab3be57250874b5524d6dfcbb009867a97ec4..ab9220f23ed4634a4d0204b4ba656acfb8cc2a2c 100644 (file)
@@ -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];
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.