linux下的gcc编译器

源代码在线查看: uninit-8.c

软件大小: 30755 K
上传用户: xfzzp_0321
关键词: linux gcc 编译器
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* Uninitialized variable warning tests...				   Inspired by part of optabs.c:expand_binop.				   May be the same as uninit-1.c.  */								/* { dg-do compile } */				/* { dg-options "-O -Wuninitialized" } */								#include 								void				add_bignums (int *out, int *x, int *y)				{				    int p, sum;				    int carry; /* { dg-bogus "carry" "uninitialized variable warning" { xfail *-*-* } } */								    p = 0;				    for (; *x; x++, y++, out++, p++)				    {					if (p)					    sum = *x + *y + carry;					else					    sum = *x + *y;									if (sum < 0)					{					    carry = 1;					    sum -= INT_MAX;					}					else					    carry = 0;				    }				}							

相关资源