* gdb.cp/converts.cc (main): Comment out the pointer to boolean
authorKeith Seitz <keiths@redhat.com>
Wed, 12 Sep 2012 23:29:05 +0000 (23:29 +0000)
committerKeith Seitz <keiths@redhat.com>
Wed, 12 Sep 2012 23:29:05 +0000 (23:29 +0000)
conversion statement.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/converts.cc

index 7b1dc36e9fa23f87484cc98b0245c3e746a96a34..faefb8da4af7619f9fcf449728a6f9b8ada996b4 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-12  Keith Seitz  <keiths@redhat.com>
+
+       * gdb.cp/converts.cc (main): Comment out the pointer to boolean
+       conversion statement.
+
 2012-09-12  Doug Evans  <dje@google.com>
 
        * gdb.base/help.exp: Remove testing of individual command help text,
index 1cda43d0578cd1fe25955faf82139c9ff538c2c5..025123fb33f144be266b033ebc6a27b7190b08d5 100644 (file)
@@ -78,7 +78,15 @@ int main()
   foo1_7 (long_int);           // long to boolean
   foo1_7 (*a);                 // char to boolean
   foo1_7 (MY_A);               // unscoped enum to boolean
+  /* converts.exp tests the next statement directly.  It is not compiled
+     here for verification because older versions of GCC (~4.1) fail to
+     compile it:
+
+     warning: the address of 'int foo1_7(bool)' will always evaluate as true
+     
   foo1_7 (&foo1_7);            // pointer to boolean
+  */
+     
   foo1_7 (&A::member_);                // pointer to member to boolean
   foo1_7 (a);                  // pointer to boolean
   foo1_7 (fp);                 // float to boolean