}
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 26 Mar 1998 12:02:04 +0000 (12:02 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 26 Mar 1998 12:02:04 +0000 (12:02 +0000)
if 0 ambiguous test case

From-SVN: r18845

gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C

index 0800c48..c73557a 100644 (file)
@@ -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();