OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb79.C
index 599d042..e5905ff 100644 (file)
@@ -1,5 +1,8 @@
+// { dg-do assemble  }
 // Makes bogus x86 assembly code.
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
 
 template<class T>
 T max(T a, T b)
@@ -8,7 +11,7 @@ T max(T a, T b)
 }
 
 // Prototypes (enable one or the other)
-double max<>(double, double);
+double max<>(double, double);      // { dg-error "" } bogus code
 // int max(int, int);
 
 int main()
@@ -17,7 +20,7 @@ int main()
   double d = 1234.5678;
 
   cout.precision(12);
-  cout << max(d, i) << endl;  // #1
-  cout << max(i, d) << endl;  // #2
+  cout << max(d, i) << endl;  // { dg-error "" } 
+  cout << max(i, d) << endl;  // { dg-error "" } 
   return 0;
 }