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:
Andrew Pinski 2003-11-09 21:27:16 +00:00 committed by Andrew Pinski
parent f6a7db9ee1
commit a5fdcda848
2 changed files with 15 additions and 0 deletions

View File

@ -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

View 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;
}