diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-16 23:43:39 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-16 23:43:39 +0000 |
commit | f9102bb90bedf3530062aabff746853679144ada (patch) | |
tree | c288491f515c50ad8125312a40e42328d819a661 /gcc/testsuite/gcc.dg/uninit-12.c | |
parent | e09ec4e3d2ff58aa1605fb220d9e6888a2979be3 (diff) | |
download | gcc-f9102bb90bedf3530062aabff746853679144ada.tar.gz |
PR middle-end/23497
* tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
parts of an SSA_NAME.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/uninit-12.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/uninit-12.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/uninit-12.c b/gcc/testsuite/gcc.dg/uninit-12.c new file mode 100644 index 00000000000..7889e5370e5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/uninit-12.c @@ -0,0 +1,12 @@ +/* PR 23497 */ +/* { dg-do compile } */ +/* { dg-options "-O -Wuninitialized" } */ + +typedef _Complex float C; +C foo() +{ + C f; + __real__ f = 0; + __imag__ f = 0; + return f; +} |