代码搜索:enum

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

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

c enum7.c

// { dg-do assemble } // Yet Another testcase for signed/unsigned enums. enum A { AA = 0, AB = 1}; enum B { BA = -1, BB = 1}; void set(int a); void set(long a); void foo() { set(AA); // { dg-bogu
www.eeworm.com/read/233448/4676053

c enum5.c

// { dg-do run } enum { a = 1 }; int main(void) { int l = -1; return ! (l < a); // testcase fails if a is unsigned }
www.eeworm.com/read/233448/4681827

c enum-1.c

typedef enum { END = -1, EMPTY = (1
www.eeworm.com/read/233448/4682155

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

c enum-3.c

/* The composite type of int and an enum compatible with int might be either of the two types, but it isn't an unsigned type. */ /* Origin: Joseph Myers */ #include
www.eeworm.com/read/233448/4684012

c enum2.c

/* { dg-options "-fshort-enums" } */ /* Check that "-fshort-enums" packs enumeration tyes into a minimal number of bytes.. */ enum e { e_1 }; extern int i[sizeof (enum e)]; int i[1];
www.eeworm.com/read/233448/4684198

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

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

c enum3.c

/* Test for non-integer enum values. */ /* Origin: Joseph Myers */ /* { dg-do compile } */ /* { dg-options "" } */ enum e { E, F }; enum e2 { E1 = (void *)4, /* { dg-erro
www.eeworm.com/read/229812/4737182

c enum03.c

#include "fail.h" #include #define TEST_SIGNED(x) ( ( x - 1 ) - x < 0 ) #define TEST_UNSIGNED(x) ( ( x - 1 ) - x > 0 ) typedef enum { en81_3 = -0x7F, en81_1 = 0x7F, en