mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* gdb.cp/converts.cc (main): Comment out the pointer to boolean
conversion statement.
This commit is contained in:
@ -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>
|
2012-09-12 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* gdb.base/help.exp: Remove testing of individual command help text,
|
* gdb.base/help.exp: Remove testing of individual command help text,
|
||||||
|
@ -78,7 +78,15 @@ int main()
|
|||||||
foo1_7 (long_int); // long to boolean
|
foo1_7 (long_int); // long to boolean
|
||||||
foo1_7 (*a); // char to boolean
|
foo1_7 (*a); // char to boolean
|
||||||
foo1_7 (MY_A); // unscoped enum 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 (&foo1_7); // pointer to boolean
|
||||||
|
*/
|
||||||
|
|
||||||
foo1_7 (&A::member_); // pointer to member to boolean
|
foo1_7 (&A::member_); // pointer to member to boolean
|
||||||
foo1_7 (a); // pointer to boolean
|
foo1_7 (a); // pointer to boolean
|
||||||
foo1_7 (fp); // float to boolean
|
foo1_7 (fp); // float to boolean
|
||||||
|
Reference in New Issue
Block a user