re PR middle-end/7227 (bogus code generation with attribute mode TI)

PR middle-end/7227
	* gcc.dg/uninit-C.c: New test.

From-SVN: r61941
This commit is contained in:
Kaveh R. Ghazi 2003-01-28 01:59:22 +00:00 committed by Kaveh Ghazi
parent 820e01bece
commit 2956f353ba
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR middle-end/7227
* gcc.dg/uninit-C.c: New test.
2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/abi/covariant1.C: New test.

View File

@ -0,0 +1,15 @@
/* Spurious uninitialized variable warning, inspired by libgcc2.c. */
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
typedef int TItype __attribute__ ((mode (TI)));
TItype
__subvdi3 (TItype a, TItype b)
{
TItype w;
w = a - b;
return w;
}