dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: cscctest/csharp/parser error4.cs,NONE,1.1 err


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: cscctest/csharp/parser error4.cs,NONE,1.1 error4.err,NONE,1.1 error4.jerr,NONE,1.1 Makefile.am,1.4,1.5
Date: Wed, 20 Nov 2002 17:46:03 -0500

Update of /cvsroot/dotgnu-pnet/cscctest/csharp/parser
In directory subversions:/tmp/cvs-serv18383/csharp/parser

Modified Files:
        Makefile.am 
Added Files:
        error4.cs error4.err error4.jerr 
Log Message:


Check for "namespace XXX }" error.


--- NEW FILE ---
/*
 * error4.cs - Test parse error recovery for "namespace" declarations.
 *
 * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace Foo // missing '{' should give "parse error at or near `class'"

        class Bar {}

}

}       // bare '{' at top level should give "parse error at or near `}'"

--- NEW FILE ---
./error4.cs:23: parse error, expecting `{', at or near `class'
./error4.cs:27: parse error at or near `}'

--- NEW FILE ---
./error4.cs:23: parse error, expecting `{', at or near `class'
./error4.cs:27: parse error at or near `}'

Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/parser/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 19 Sep 2002 04:21:07 -0000      1.4
--- Makefile.am 20 Nov 2002 22:46:01 -0000      1.5
***************
*** 7,10 ****
--- 7,11 ----
                error2.cs \
                error3.cs \
+               error4.cs \
                member_access1.cs \
                member_access2.cs \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]