200031109-1.c: New test.
2003-11-09 Andrew Pinski <pinskia@physics.uc.edu> * gcc.c-torture/compile/200031109-1.c: New test. From-SVN: r73397
This commit is contained in:
parent
f6a7db9ee1
commit
a5fdcda848
@ -1,3 +1,7 @@
|
||||
2003-11-09 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* gcc.c-torture/compile/200031109-1.c: New test.
|
||||
|
||||
2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
|
||||
|
||||
PR c/3190
|
||||
|
11
gcc/testsuite/gcc.c-torture/compile/200031109-1.c
Normal file
11
gcc/testsuite/gcc.c-torture/compile/200031109-1.c
Normal file
@ -0,0 +1,11 @@
|
||||
/* For a short time on the tree-ssa branch this would warn that
|
||||
value was not initialized as it was optimizing !(value = (m?1:2))
|
||||
to 0 and not setting value before. */
|
||||
|
||||
int t(int m)
|
||||
{
|
||||
int value;
|
||||
if (!(value = (m?1:2)))
|
||||
value = 0;
|
||||
return value;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user