fix test
authorBrendan Kehoe <brendan@gcc.gnu.org>
Thu, 27 Aug 1998 18:46:21 +0000 (14:46 -0400)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Thu, 27 Aug 1998 18:46:21 +0000 (14:46 -0400)
From-SVN: r22026

gcc/testsuite/g++.old-deja/g++.brendan/parse4.C

index 95995ffd1a09e045db19433184654fda3a76bb63..03c7d47c982388381872448b959797de379bcf48 100644 (file)
@@ -12,7 +12,7 @@ public:
     void f() {}
 };
 
-int g() { return 0; }
+int g() { return 0; } // ERROR - global decl of g
 
 main()
 {
@@ -20,5 +20,5 @@ main()
     B( try1 ).f();   // no syntax error
     B b( g() );      // no syntax error
     B( ::g() ).f();  // no syntax error 
-    B( g() ).f();    // syntax error before `.' // ERROR - 
+    B( g() ).f();    // syntax error before `.' // ERROR - parse error
 }