summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-6.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-03 19:26:10 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-03 19:26:10 +0000
commitcbb04ca92323480471b9475688cc20af9409045a (patch)
tree880f2f769dc0994ba432ededf29411924db85d5f /gcc/testsuite/gcc.dg/uninit-6.c
parent444e42cce08b2c2886b81241961bf271d1e77b1e (diff)
downloadgcc-cbb04ca92323480471b9475688cc20af9409045a.tar.gz
PR middle-end/40943
* tree-ssa.c (warn_uninitialized_var): Even on LHS warn for operand of INDIRECT_REF. * gcc.dg/uninit-6.c: Re-add XFAIL. * gcc.dg/uninit-6-O0.c: Likewise. * gcc.dg/uninit-pr40943.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/uninit-6.c')
-rw-r--r--gcc/testsuite/gcc.dg/uninit-6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/uninit-6.c b/gcc/testsuite/gcc.dg/uninit-6.c
index 009e124fccf..b0f2083ab4b 100644
--- a/gcc/testsuite/gcc.dg/uninit-6.c
+++ b/gcc/testsuite/gcc.dg/uninit-6.c
@@ -39,7 +39,7 @@ make_something(int a, int b, int c)
rv = malloc (sizeof (struct tree));
rv->car = 0;
- APPEND(rv, field, INTEGER_T, a); /* { dg-bogus "field" "uninitialized variable warning" } */
+ APPEND(rv, field, INTEGER_T, a); /* { dg-bogus "field" "uninitialized variable warning" { xfail *-*-* } } */
APPEND(rv, field, PTR_T, b);
APPEND(rv, field, INTEGER_T, c);