From: Benjamin Kosnik Date: Thu, 26 Mar 1998 12:02:04 +0000 (+0000) Subject: } X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56d4b6fdcbf428480e7f0530ef77990e31773615;p=gcc.git } if 0 ambiguous test case From-SVN: r18845 --- diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C index 0800c48cd3b..c73557ae657 100644 --- a/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C +++ b/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C @@ -5,12 +5,15 @@ void bar ( bool x ) {}; void bars ( short x ) {}; +/* 980326 bkoz this is not initialized and so can have indeterminate value. */ +#if 0 int orb(){ bool y; bar ( y ); int blob = ( 27 | int (y) ); return blob; //expect 27 or 0 } +#endif int orbtrue(){ bool y = true; @@ -51,8 +54,10 @@ int orus(){ int main() { int tmp; +#if 0 tmp = orb(); assert (tmp == 27 || tmp == 0); +#endif tmp = orbtrue(); assert (tmp ==27); tmp = orbfalse();