update
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Nov 1998 21:27:47 +0000 (21:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Nov 1998 21:27:47 +0000 (21:27 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23757 138bc75d-0d04-0410-961f-82ee72b054a4

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 179740d..ba6af18 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 31f3c6f..10535bb 100644 (file)
@@ -1,6 +1,7 @@
 // Build don't link:
 // Special g++ Options: -fexceptions -Wall
 
+int
 main() {
   throw 1;
 }
index a5b11f2..7d07ffd 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 a7ce899..f865f1e 100644 (file)
@@ -17,6 +17,8 @@ OpResult fn1() {
 }
 
 extern void foo();
+
+int
 main () {
   if (fn1() == Ok) {   // WARNING - 
     foo();
index 15f2631..3baea64 100644 (file)
@@ -119,6 +119,7 @@ tryIt(const String& filename)
   }
 }
 
+int
 main()
 {
   tryIt("goodFile.txt");