linux下编程用 编译软件

源代码在线查看: 960311-3.c

软件大小: 49607 K
上传用户: IsABC
关键词: linux 编程 编译 软件
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include 								#ifdef DEBUG				#define abort() printf ("error, line %d\n", __LINE__)				#endif								int count;								void a1() { ++count; }								void				b (unsigned long data)				{				  if (data & 0x80000000) a1();				  data 								  if (data & 0x80000000) a1();				  data 								  if (data & 0x80000000) a1();				}								main ()				{				  count = 0;				  b (0);				  if (count != 0)				    abort ();								  count = 0;				  b (0x80000000);				  if (count != 1)				    abort ();								  count = 0;				  b (0x40000000);				  if (count != 1)				    abort ();								  count = 0;				  b (0x20000000);				  if (count != 1)				    abort ();								  count = 0;				  b (0xc0000000);				  if (count != 2)				    abort ();								  count = 0;				  b (0xa0000000);				  if (count != 2)				    abort ();								  count = 0;				  b (0x60000000);				  if (count != 2)				    abort ();								  count = 0;				  b (0xe0000000);				  if (count != 3)				    abort ();								#ifdef DEBUG				  printf ("Done.\n");				#endif				  exit (0);				}							

相关资源