代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1452341
c line4.c
/* { dg-do compile } */
/* Test #line with and without macros for the line number. */
extern void abort (void);
#define L 90
#line 44
enum { i = __LINE__ };
#line L
enum { j = __LINE__ };
#line
www.eeworm.com/read/470693/1459836
c template43.c
// Test matching of partial specializations.
template
class EQUAL {
public:
enum { value = 0 };
};
template
class EQUAL {
public:
enum { value = 1 };
};
int x;
int y
www.eeworm.com/read/470693/1464287
c line4.c
/* { dg-do compile } */
/* Test #line with and without macros for the line number. */
extern void abort (void);
#define L 90
#line 44
enum { i = __LINE__ };
#line L
enum { j = __LINE__ };
#line
www.eeworm.com/read/242732/4541196
h config.h
/* ---------------- config.h -------------- */
#ifndef CONFIG_H
#define CONFIG_H
enum DfColorTypes {
DF_STD_COLOR,
DF_SELECT_COLOR,
DF_FRAME_COLOR,
DF_HILITE_COLOR
};
enum DfGrounds
www.eeworm.com/read/240162/4583072
c template43.c
// { dg-do run }
// Test matching of partial specializations.
template
class EQUAL {
public:
enum { value = 0 };
};
template
class EQUAL {
public:
enum { value = 1 }
www.eeworm.com/read/240162/4590041
c line4.c
/* { dg-do compile } */
/* Test #line with and without macros for the line number. */
extern void abort (void);
#define L 90
#line 44
enum { i = __LINE__ };
#line L
enum { j = __LINE__ };
#line
www.eeworm.com/read/233448/4675859
c rfg10.c
// { dg-do assemble }
// Bug: g++ doesn't notice the overflow in the enum values.
#include
enum COLOR
{
red,
green = ULONG_MAX,
blue // { dg-error "overflow in enumeration"
www.eeworm.com/read/233448/4675891
c template43.c
// { dg-do run }
// Test matching of partial specializations.
template
class EQUAL {
public:
enum { value = 0 };
};
template
class EQUAL {
public:
enum { value = 1 }
www.eeworm.com/read/233448/4685919
c line4.c
/* { dg-do compile } */
/* Test #line with and without macros for the line number. */
extern void abort (void);
#define L 90
#line 44
enum { i = __LINE__ };
#line L
enum { j = __LINE__ };
#line
www.eeworm.com/read/229812/4738232
c diag0280.c
#include
// use -wx switch
bool foo( long l ) {
struct {
unsigned y : 1;
unsigned z : 3;
} x;
typedef enum {
one,
two = UCHAR_MAX,
three,
four
} enum1;