update
authorJason Merrill <jason@gcc.gnu.org>
Sun, 22 Nov 1998 21:27:47 +0000 (16:27 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 22 Nov 1998 21:27:47 +0000 (16:27 -0500)
From-SVN: r23757

gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C
gcc/testsuite/g++.old-deja/g++.jason/warning5.C
gcc/testsuite/g++.old-deja/g++.mike/eh20.C
gcc/testsuite/g++.old-deja/g++.mike/p4173.C
gcc/testsuite/g++.old-deja/g++.mike/warn2.C
gcc/testsuite/g++.old-deja/g++.robertl/eb78.C

index 179740d556cf8986c9b1b3149d383b1e413afbf1..ba6af18b632eab96f47bc67ccfa7b038b00a1b9c 100644 (file)
@@ -40,12 +40,7 @@ struct S {
 typedef struct S T;
 
 S a = T();                      // OK 
-struct T * p;                   // error
+struct T * p;                   // ERROR - using typedef after struct
 
 //case01
 typedef bool short;// ERROR - .*
-
-
-
-
-
index ffa8713ea640d85db0099a954db2ffb7e485c398..239d867b52f0747d477bb9012f41d4891dc1e1f8 100644 (file)
@@ -11,6 +11,7 @@ public:
   int a;
 };
 
+int
 main()
 {
   char buffer[1024];
index 31f3c6f928a1d98bbc63e9d691b38a47fa47a7d1..10535bb960980c0d3f60f7094aaa8879035018e4 100644 (file)
@@ -1,6 +1,7 @@
 // Build don't link:
 // Special g++ Options: -fexceptions -Wall
 
+int
 main() {
   throw 1;
 }
index a5b11f226d2caceddcbbdcc2d070e1999d50a2d4..7d07ffd26b5ef1f812397f152e6474c29649b24b 100644 (file)
@@ -18,6 +18,8 @@ struct Type
 Type a;
 Type b;
 TypeKind c;
+
+int
 main() {
   a.kind = b.kind = c;
   (a.kind = c) = b.kind;       // gets bogus error
index a7ce899a31ed1a3d32a12ad39ef1491a342a3237..f865f1e52d9be60f6e7f81cd95a6ed2e29b1adf5 100644 (file)
@@ -17,6 +17,8 @@ OpResult fn1() {
 }
 
 extern void foo();
+
+int
 main () {
   if (fn1() == Ok) {   // WARNING - 
     foo();
index 15f26318efbd87eb4533f1981cf1177a4c8c2c76..3baea64743dae6688206a083e2c370b49c63f9aa 100644 (file)
@@ -119,6 +119,7 @@ tryIt(const String& filename)
   }
 }
 
+int
 main()
 {
   tryIt("goodFile.txt");