[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: cscctest/csharp/expr this1.cs,NONE,1.1 this1.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: cscctest/csharp/expr this1.cs,NONE,1.1 this1.il,NONE,1.1 this1.jerr,NONE,1.1 Makefile.am,1.22,1.23 |
Date: |
Fri, 29 Nov 2002 17:00:07 -0500 |
Update of /cvsroot/dotgnu-pnet/cscctest/csharp/expr
In directory subversions:/tmp/cvs-serv13659/csharp/expr
Modified Files:
Makefile.am
Added Files:
this1.cs this1.il this1.jerr
Log Message:
Test the use of "this" as an l-value in struct's.
--- NEW FILE ---
/*
* this1.cs - Test value type usages of "this".
*
* 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
*/
struct Test
{
int x;
public void Set(Test value)
{
this = value;
}
}
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class private sequential sealed serializable ansi 'Test' extends
['.library']'System'.'ValueType'
{
.field private int32 'x'
.method public hidebysig instance void 'Set'(valuetype 'Test' 'value') cil
managed
{
ldarg.0
ldarg.1
stobj 'Test'
ret
.maxstack 2
} // method Set
} // class Test
--- NEW FILE ---
./this1.cs:27: invalid lvalue in assignment
Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/expr/Makefile.am,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** Makefile.am 8 Nov 2002 17:03:17 -0000 1.22
--- Makefile.am 29 Nov 2002 22:00:04 -0000 1.23
***************
*** 49,52 ****
--- 49,53 ----
sizeof1.cs \
sizeof2.cs \
+ this1.cs \
typedref1.cs \
typedref2.cs \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: cscctest/csharp/expr this1.cs,NONE,1.1 this1.il,NONE,1.1 this1.jerr,NONE,1.1 Makefile.am,1.22,1.23,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_misc.tc,1.43,1.44 cg_nodes.tc,1.72,1.73 jv_misc.tc,1.27,1.28
- Next by Date:
[Dotgnu-pnet-commits] CVS: cscctest ChangeLog,1.127,1.128
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_misc.tc,1.43,1.44 cg_nodes.tc,1.72,1.73 jv_misc.tc,1.27,1.28
- Next by thread:
[Dotgnu-pnet-commits] CVS: cscctest ChangeLog,1.127,1.128
- Index(es):