linux下编程用 编译软件

源代码在线查看: wunreachable-code-1.c

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

相关代码

				/* PR17544 Incorrect -Wunreachable-code warning				   Origin: sebor@roguewave.com								   G++ appends a "return 0;" when finishing a function, but it was not				   given a source location.  The gimplifier thinks a return statement				   needs a locus so it would add one, making the compiler generated code				   visible to the unreachable code warning.  */								/* { dg-do compile } */				/* { dg-options "-O -Wunreachable-code" } */								int				main (int argc, char *argv[])				{				  const char* const s = argc < 2 ? "" : argv [1];				  int i = 0;				  do {				    ++i;				  } while (i < s [0]);				  return i;				}											

相关资源