diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-28 01:59:22 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-28 01:59:22 +0000 |
commit | a4a8d7fbac4dd11ad8ab103a9409535276d213d5 (patch) | |
tree | 242aaa6dcc38d7b2e92f4d08e9b4052737569c3c /gcc/testsuite/gcc.dg/uninit-C.c | |
parent | 8ce9c71903bb88fb3577351a4bdb92bb10def811 (diff) | |
download | gcc-a4a8d7fbac4dd11ad8ab103a9409535276d213d5.tar.gz |
PR middle-end/7227
* gcc.dg/uninit-C.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/uninit-C.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/uninit-C.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/uninit-C.c b/gcc/testsuite/gcc.dg/uninit-C.c new file mode 100644 index 00000000000..c81ada4abfc --- /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; +} |