代码搜索:enum

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

代码结果 10,000
www.eeworm.com/read/240162/4579549

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/240162/4579617

c enum1.c

// Verify that we don't confuse precision and mode for enums. // { dg-do run } // { dg-options "-O" } extern "C" void abort(); enum E { zero = 0, test = 0xbb }; static bool foo(unsigned char *
www.eeworm.com/read/240162/4579675

c enum1.c

// { dg-do run } void abort(); int main() { enum { shelf = 4 } t = shelf; if (!(t & shelf)) abort (); }
www.eeworm.com/read/240162/4579756

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/240162/4579865

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/240162/4579968

c enum2.c

// PR c++/15877 template struct T1 { enum { N = 3 }; }; template struct T2 { enum { N = n, N1 = T1::N }; };
www.eeworm.com/read/240162/4580210

c enum1.c

// PR c++/15554 template struct T1 { enum { N = 3 }; }; template struct T2 { enum { N = 3, N1 = T1::N }; };
www.eeworm.com/read/240162/4580450

c enum2.c

// { dg-do assemble } // 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 th
www.eeworm.com/read/240162/4580475

c enum3.c

// { dg-do assemble } // Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 28 Feb 2001 // Bug 338 and DR 128. Allow static cast to convert
www.eeworm.com/read/240162/4580589

c enum4.c

// { dg-do run } // { dg-options "-fshort-enums" } // Origin: Mark Mitchell enum E { a = -312 }; E e = a; int main () { if ((int) e != -312) return 1; }