diff options
author | Chris Moller <cmoller@cygnus> | 2010-02-08 18:27:53 +0000 |
---|---|---|
committer | Chris Moller <cmoller@cygnus> | 2010-02-08 18:27:53 +0000 |
commit | 83b10087f47feb355bbdc02f8fcd336c0bf000aa (patch) | |
tree | 71a06b00238d30b35d0aecea6c52f633a667f664 /gdb/testsuite/gdb.cp/pr10728-x.cc | |
parent | 99903ae39ebb2032c28aa7bb8b24d6d0f901a2f1 (diff) | |
download | gdb-83b10087f47feb355bbdc02f8fcd336c0bf000aa.zip gdb-83b10087f47feb355bbdc02f8fcd336c0bf000aa.tar.gz gdb-83b10087f47feb355bbdc02f8fcd336c0bf000aa.tar.bz2 |
PR gdb/10728
* valarith.c (value_ptrdiff): Added a test for a zero type length,
warn if found, and assume length = 1.
* gdb.cp/pr10728-x.h: New file.
* gdb.cp/pr10728-x.cc: New file.
* gdb.cp/pr10728-y.cc: New file.
* gdb.cp/pr10728.exp: New file.
* gdb.cp/Makefile.in (EXECUTABLES): Add pr10728
Diffstat (limited to 'gdb/testsuite/gdb.cp/pr10728-x.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/pr10728-x.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/pr10728-x.cc b/gdb/testsuite/gdb.cp/pr10728-x.cc new file mode 100644 index 0000000..7623c0b --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr10728-x.cc @@ -0,0 +1,7 @@ +#include "pr10728-x.h" + +int main() +{ + X* x = y(); + return 0; // marker 1 +} |