istream_sentry.cc (test02): Fix.
authorPeter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Wed, 17 Jan 2001 08:30:25 +0000 (08:30 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 17 Jan 2001 08:30:25 +0000 (08:30 +0000)
2001-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

* testsuite/27_io/istream_sentry.cc (test02): Fix.

From-SVN: r39089

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/istream_sentry.cc

index 5e31c3374ddf0365e291e4c4efbd6062d8602e71..7551392cf0e5e2854555750b20f6541fb4aa133f 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+
+       * testsuite/27_io/istream_sentry.cc (test02): Fix.
+
 2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>
 
        libstdc++/1605
index cf4a1bb809960b7befa55a88caf8c25e8acf9fc0..4b5634d7078bcc93dad0b3d4300e70de61bf0f64 100644 (file)
@@ -73,6 +73,8 @@ test02()
   while(in >> x)
     {
       ++i;
+      if (i > 3) 
+       break;
     }
   VERIFY( i == 3 );
 }