diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-01-28 01:59:22 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-01-28 01:59:22 +0000 |
commit | 2956f353baff55a44b0cac9807774b47c3f3ab02 (patch) | |
tree | 242aaa6dcc38d7b2e92f4d08e9b4052737569c3c | |
parent | 820e01becea1f3027a3259ac58f1bf9d8b2f4ef0 (diff) | |
download | gcc-2956f353baff55a44b0cac9807774b47c3f3ab02.zip gcc-2956f353baff55a44b0cac9807774b47c3f3ab02.tar.gz gcc-2956f353baff55a44b0cac9807774b47c3f3ab02.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/uninit-C.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c778bcc..467fcca 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.dg/uninit-C.c b/gcc/testsuite/gcc.dg/uninit-C.c new file mode 100644 index 0000000..c81ada4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/uninit-C.c @@ -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; +} |