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

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

[Dotgnu-pnet-commits] CVS: cscctest/c/expr arrayptr1.3il,NONE,1.1 arrayp


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: cscctest/c/expr arrayptr1.3il,NONE,1.1 arrayptr1.c,NONE,1.1 arrayptr1.il,NONE,1.1 Makefile.am,1.6,1.7
Date: Tue, 05 Nov 2002 18:57:18 -0500

Update of /cvsroot/dotgnu-pnet/cscctest/c/expr
In directory subversions:/tmp/cvs-serv32702/c/expr

Modified Files:
        Makefile.am 
Added Files:
        arrayptr1.3il arrayptr1.c arrayptr1.il 
Log Message:


Test for array pointer usages.


--- NEW FILE ---
.assembly '<Assembly>'
{
        .ver 0:0:0:0
}
.module '<Module>'
.custom instance void OpenSystem.C.MemoryModelAttribute::.ctor(int32) = (01 00 
20 00 00 00 00 00)
.method public static void 'func'(int32 * 'x') cil managed 
{
        ret
        .maxstack 0
} // method func
.method public static void 'func3'(valuetype 'array int[100]' * 'x') cil 
managed 
{
        ret
        .maxstack 0
} // method func3
.method public static void 'func2'() cil managed 
{
        .locals (valuetype 'array int[100]')
        ldloca.s        0
        call    void 'func'(int32 *)
        ldloca.s        0
        call    void 'func3'(valuetype 'array int[100]' *)
        ret
        .maxstack 1
} // method func2
.class public explicit value sealed serializable ansi 'array int[100]' extends 
['.library']'System'.'ValueType'
{
.size 400
.pack 4
.field [0] public specialname int32 'elem__'
} // class array int[100]

--- NEW FILE ---
/*
 * arrayptr1.c - Test array pointers.
 *
 * 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
 */

void func(int *x)
{
}

typedef int aa[100];

void func3(aa *x)
{
}

void func2(void)
{
        int x[100];
        func(x);
        func3(&x);
}

--- NEW FILE ---
.assembly '<Assembly>'
{
        .ver 0:0:0:0
}
.module '<Module>'
.custom instance void OpenSystem.C.MemoryModelAttribute::.ctor(int32) = (01 00 
40 00 00 00 00 00)
.method public static void 'func'(int32 * 'x') cil managed 
{
        ret
        .maxstack 0
} // method func
.method public static void 'func3'(valuetype 'array int[100]' * 'x') cil 
managed 
{
        ret
        .maxstack 0
} // method func3
.method public static void 'func2'() cil managed 
{
        .locals (valuetype 'array int[100]')
        ldloca.s        0
        call    void 'func'(int32 *)
        ldloca.s        0
        call    void 'func3'(valuetype 'array int[100]' *)
        ret
        .maxstack 1
} // method func2
.class public explicit value sealed serializable ansi 'array int[100]' extends 
['.library']'System'.'ValueType'
{
.size 400
.pack 4
.field [0] public specialname int32 'elem__'
} // class array int[100]

Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/c/expr/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Makefile.am 21 Oct 2002 01:37:46 -0000      1.6
--- Makefile.am 5 Nov 2002 23:57:15 -0000       1.7
***************
*** 1,4 ****
  
! TESTS = assign1.c \
                binary1.c \
                funcptr1.c \
--- 1,5 ----
  
! TESTS = arrayptr1.c \
!               assign1.c \
                binary1.c \
                funcptr1.c \





reply via email to

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