Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码

源代码在线查看: if-empty-1.c

软件大小: 38649 K
上传用户: liuchuyuan
关键词: Source Code Mac for
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* Test diagnostics for empty bodies in if / else.  */				/* Origin: Joseph Myers  */				/* { dg-do compile } */				/* { dg-options "-Wextra" } */								void				f (int x)				{				  if (x)				    ; /* { dg-warning "warning: empty body in an if-statement" } */				  if (x)				    ; /* By design we don't warn in this case.  */				  else				    (void)0;				  if (x)				    (void)0;				  else				    ; /* { dg-warning "warning: empty body in an else-statement" } */				  if (x)				    (void)0;				  else				    (void)0;				}							

相关资源