代码搜索:enum

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

代码结果 10,000
www.eeworm.com/read/233448/4671201

c enum1.c

// PR c++/14476 struct tree_common { enum tree_code code : 8; // { dg-error "" } };
www.eeworm.com/read/233448/4671467

c enum2.c

// { dg-do compile } // Origin: Volker Reichelt // PR c++/18123: ICE pushing tag from invalid template. template enum E { e }; // { dg-error "template declaration" }
www.eeworm.com/read/233448/4671658

c enum1.c

// PR c++/15862 enum yn { Y, N }; enum yn x = Y;
www.eeworm.com/read/233448/4671811

c enum2.c

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

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/233448/4672033

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/233448/4672118

c enum1.c

// { dg-do run } extern "C" void abort(); int main() { enum { shelf = 4 } t = shelf; if (!(t & shelf)) abort (); }
www.eeworm.com/read/233448/4672234

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/233448/4672370

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/233448/4672561

c enum2.c

// PR c++/15877 template struct T1 { enum { N = 3 }; }; template struct T2 { enum { N = n, N1 = T1::N }; };