代码搜索:bug
找到约 10,000 项符合「bug」的源代码
代码结果 10,000
www.eeworm.com/read/178760/5313593
c bug-524211.c
/* Problem with casts and warnings.
*/
#include
#if 0
/* Disabled as this only shows a warning */
typedef unsigned short UINT16;
typedef unsigned char UINT8;
typedef struct _Class Clas
www.eeworm.com/read/178760/5313596
c bug-524195.c
/* Problem with inverting constants
*/
#include
enum
{
USEDFLAG = 1
};
typedef struct _HeapEntry HeapEntry;
typedef unsigned int UINT;
struct _HeapEntry
{
HeapEntry *pPrev;
www.eeworm.com/read/178760/5313600
c bug-895992.c
/* bug-895992.c
Life Range problem with
- uninitialized variable
- loop
- conditional block
LR problem hits all ports, but this test is mcs51 specific
*/
#include
char p
www.eeworm.com/read/178760/5313605
c bug-524691.c
/* Division by powers of two.
*/
#include
typedef unsigned int UINT;
typedef struct _HeapEntryState
{
void *pBase;
UINT uFlags;
} HeapEntryState;
static HeapEntryState *_getHeapEnt
www.eeworm.com/read/178760/5313606
c bug-408972.c
/* Fake header.
*/
#include
long leftShiftLong (long l) {
/* PENDING: Disabled.
return (l
www.eeworm.com/read/178760/5313607
c bug-426632.c
/* bug-436632.c
PENDING
*/
#include
typedef struct {
unsigned char year; /* Current year (with offset 1900) */
unsigned char month; /* Month (1 = Jan., ..., 12 = Dec.) */
www.eeworm.com/read/178760/5313608
c bug1426356.c
/*
bug1426356.c
*/
#include
const union pu {
unsigned char t1;
unsigned char t2;
} tst[2] = {{ 1 }, { 2 }};
void
test_1426356(void)
{
ASSERT( tst[0].t1 == 1 );
ASSERT( tst[0]
www.eeworm.com/read/178760/5313609
c bug-485362.c
/** Shows segfault.
type: int
*/
#include
void
spoil({type} f)
{
UNUSED(f);
}
void
testDivBySelf(void)
{
volatile {type} left, result;
left = 17;
result = left/left;
spo
www.eeworm.com/read/178760/5313610
c bug-448984.c
/* bug-448984.c
*/
#include
void
testRshRem(void)
{
volatile int rem, quot;
quot = 4;
rem = 5000;
rem = rem - (quot*1024);
ASSERT(rem == 904);
}
www.eeworm.com/read/178760/5313612
c bug-460444.c
/* bug 460444
*/
#include
void
testXOR(void)
{
volatile int p = 5;
if (p ^ 0x60) {
// Good.
}
else {
FAIL();
}
/* Test is to see if it compiles. */
ASSERT((p^0x