代码搜索:enum

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

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

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/470720/1445285

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/470720/1445400

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; }
www.eeworm.com/read/470720/1445608

c enum5.c

// Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Ben Elliston // PR 80: Packed enums use minimum required storage. // excess errors test - XFAIL *-*-* extern "
www.eeworm.com/read/470720/1445655

c enum1.c

extern "C" void abort(); struct A { enum { a = 3}* p; int f() { return (int) a; } }; int main() { A a; if (a.f() != 3) abort(); }
www.eeworm.com/read/470720/1445811

c enum12.c

// Build don't link: template struct S1 { }; template struct S2 { enum { x = 3 }; void f(S1&); }; template void S2::f(S1&) { }
www.eeworm.com/read/470720/1445861

c enum2.c

// Build don't link: struct U { static int STATIC; }; template class FOO { public: enum { n = 0 }; }; template class BAR { public: enum { n = FOO::n }; }; int
www.eeworm.com/read/470720/1445909

c enum3.c

struct S { enum en { s0, s1, s2 }; }; template int val( ) { return e; } int main() { return val( ); }
www.eeworm.com/read/470720/1445937

c enum13.c

// Build don't link: // Origin: Theodore Papadopoulo template struct foo { enum { A = 4 >= 4, B = (1 ? true : A) }; }; foo bar;
www.eeworm.com/read/470720/1446023

c enum14.c

// Build don't link: // Copyright (C) 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 4 Oct 2000 // Origin: bug 511 malte.starostik@t-online.de // Bug 5