代码搜索:enum

找到约 10,000 项符合「enum」的源代码

代码结果 10,000
www.eeworm.com/read/470720/1450432

c enum-2.c

/* Copyright (C) 2000 Free Software Foundation */ /* by Alexandre Oliva */ enum foo { FOO, BAR }; /* Even though the underlying type of an enum is unspecified, the type of en
www.eeworm.com/read/470720/1451862

c enum1.c

/* { dg-do run } */ /* { dg-options "-std=gnu89" } */ /* In standard C, enumeration constants always have type int. If they are not representables are int, they're ill-formed. In GNU C, we gi
www.eeworm.com/read/470720/1452004

c wswitch-enum.c

/* PR c/5044 */ /* { dg-do compile } */ /* { dg-options "-Wswitch-enum" } */ enum e { e1, e2 }; int foo (int i, int j, enum e ei, enum e ej, enum e ek, enum e el, enum e em, enum e en, enum e e
www.eeworm.com/read/470693/1456543

c enum2.c

#include enum test { z = 0, c = UINT_MAX + 1LL } x = z; int main() { return x != z; }
www.eeworm.com/read/470693/1456577

c enum1.c

enum test { acceptable = -1, unacceptable = 0xffffffffffffffffLL }; // { dg-error "" } enum test t = acceptable, u = unacceptable; int main() { return 0; }
www.eeworm.com/read/470693/1456699

c enum1.c

// { dg-do run } #include enum foo { foo1 = 0, foo2 = 0xffffffffffffffffULL, foo3 = 0xf0fffffffffffffeULL }; int main () { if (sizeof (enum foo) != sizeof (unsigned long lon
www.eeworm.com/read/470693/1456763

c enum1.c

// PR c++/6037 // This testcase ICEd because start_enum expected pushtag to insert // the tag always into current binding level. struct A { ~A () { } }; struct B { void foo () { switch (0)
www.eeworm.com/read/470693/1457206

c enum2.c

// Build don't link: // Copyright (C) 1999 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 3 Jun 1999 // We'd like the enum location to be its open brace. enum thin
www.eeworm.com/read/470693/1457231

c enum3.c

// Build don't link: // Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 28 Feb 2001 // Bug 338 and DR 128. Allow static cast to convert b
www.eeworm.com/read/470693/1457346

c enum4.c

// Origin: Mark Mitchell // Special g++ Options: -fshort-enums enum E { a = -312 }; E e = a; int main () { if ((int) e != -312) return 1; }