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

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

[Dotgnu-pnet-commits] cscctest/c/decl enum1.3il, NONE, 1.1 enum1.c, NONE


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] cscctest/c/decl enum1.3il, NONE, 1.1 enum1.c, NONE, 1.1 enum1.il, NONE, 1.1 Makefile.am, 1.6, 1.7
Date: Thu, 02 Oct 2003 23:40:36 +0000

Update of /cvsroot/dotgnu-pnet/cscctest/c/decl
In directory subversions:/tmp/cvs-serv22939/c/decl

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


Test case for a complex enum constant expression.


--- NEW FILE: enum1.3il ---
.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)
.field public static int32 'x'
.method private static specialname void '.init-0'() cil managed 
{
.custom instance void 
['OpenSystem.C']'OpenSystem.C'.'InitializerAttribute'::'.ctor'() = (01 00 00 00)
        ldc.i4  256
        stsfld  int32 'x'
        ret
        .maxstack 1
} // method .init-0

Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/c/decl/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Makefile.am 12 Mar 2003 07:54:59 -0000      1.6
--- Makefile.am 2 Oct 2003 23:40:34 -0000       1.7
***************
*** 2,5 ****
--- 2,6 ----
  TESTS = cdtor1.c \
                cdtor2.c \
+               enum1.c \
                proto1.c \
                struct1.c \

--- NEW FILE: enum1.c ---
/*
 * enum1.c - Test simple enumerated constant values.
 *
 * Copyright (C) 2003  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
 */

enum{ _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8))};

int x = _ISupper;

--- NEW FILE: enum1.il ---
.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)
.field public static int32 'x'
.method private static specialname void '.init-0'() cil managed 
{
.custom instance void 
['OpenSystem.C']'OpenSystem.C'.'InitializerAttribute'::'.ctor'() = (01 00 00 00)
        ldc.i4  256
        stsfld  int32 'x'
        ret
        .maxstack 1
} // method .init-0





reply via email to

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