* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb77.C
blob358c186ab9158b6a7719fca566784ec26e7a569a
1 // { dg-do run  }
2 #include <iostream>
3 #include <sstream>
5 using namespace std;
7 int
8 main(int, char* [])
10   stringstream s;
12   s << "line 1\nline 2\n\nline 4";
13   s << std::ends;
15   int nLine = 0;
17   while( true ) {
18     char line[100];
19     s.get(line, 100);
21     if( ! line ) {
22       break;
23     }
25     ++nLine;
26     std::cout << nLine << ": " << line << std::endl;
28     if( nLine > 10 ) {  // stop infinite loop
29       break;
30     }
31   }
32   return 0;