* gcc.dg/uninit-C.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61941
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
--- /dev/null
+/* 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;
+}