OSDN Git Service

2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash49.C
index 98a580d..3f2e225 100644 (file)
@@ -1,12 +1,12 @@
 // Build don't link: 
 // GROUPS passed old-abort
-#include<iostream.h>
+#include<iostream>
 
 const int keys = 10;
 const int key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]};
 
 void main()
 { // ERROR - return type for main
-        for(int i = 0; i < keys;) cout << key[i++] << " ";
-        endl(cout);
+        for(int i = 0; i < keys;) std::cout << key[i++] << " ";
+        std::endl(std::cout);
 }