diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-10-25 08:03:18 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2011-10-25 08:03:18 +0000 |
commit | 81472056d738c3b07914f3dad5edb0f4af45a050 (patch) | |
tree | 3273d71c8c4bf457ccf5ba1bcbfda3792f41a151 /binutils/testsuite | |
parent | 977888b9906f450cc0f3f2ecf917e7b33aaf1217 (diff) | |
download | gdb-81472056d738c3b07914f3dad5edb0f4af45a050.zip gdb-81472056d738c3b07914f3dad5edb0f4af45a050.tar.gz gdb-81472056d738c3b07914f3dad5edb0f4af45a050.tar.bz2 |
2011-10-25 Kai Tietz <ktietz@redhat.com>
* winduni.h (unicode_from_ascii_len): New prototype.
* winduni.c (unicode_from_ascii_len): New function.
* windres.h (define_stringtable): Add additional length argument.
* windres.c (define_stringtable): Add length argument for string.
* rcparse.y (res_unicode_sizedstring): New rule.
(res_unicode_sizedstring_concat): Likewise.
(string_data): Adjust rule.
2011-10-25 Kai Tietz <ktietz@redhat.com>
* binutils-all/windres/strtab4.rc: New test.
* binutils-all/windres/strtab4.rsd: Likewise.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/windres/strtab4.rc | 10 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/windres/strtab4.rsd | 8 |
3 files changed, 23 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index d620d8e..bafa956 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-10-25 Kai Tietz <ktietz@redhat.com> + + * binutils-all/windres/strtab4.rc: New test. + * binutils-all/windres/strtab4.rsd: Likewise. + 2011-10-11 Chris <player1@onet.eu> PR binutils/13051 diff --git a/binutils/testsuite/binutils-all/windres/strtab4.rc b/binutils/testsuite/binutils-all/windres/strtab4.rc new file mode 100644 index 0000000..cd53298 --- /dev/null +++ b/binutils/testsuite/binutils-all/windres/strtab4.rc @@ -0,0 +1,10 @@ +// cpparg -DTEST=1 + +#include "windows.h" + +LANGUAGE 0, 0 + +STRINGTABLE MOVEABLE PURE DISCARDABLE +BEGIN + 1 "hello\0 world" +END diff --git a/binutils/testsuite/binutils-all/windres/strtab4.rsd b/binutils/testsuite/binutils-all/windres/strtab4.rsd new file mode 100644 index 0000000..9fa055d --- /dev/null +++ b/binutils/testsuite/binutils-all/windres/strtab4.rsd @@ -0,0 +1,8 @@ + 0000 00000000 20000000 ffff0000 ffff0000 .... ........... + 0010 00000000 00000000 00000000 00000000 ................ + 0020 38000000 20000000 ffff0600 ffff0100 8... ........... + 0030 00000000 30100000 00000000 00000000 ....0........... + 0040 00000c00 68006500 6c006c00 6f000000 ....h.e.l.l.o... + 0050 20007700 6f007200 6c006400 00000000 .w.o.r.l.d..... + 0060 00000000 00000000 00000000 00000000 ................ + 0070 00000000 00000000 ........ |