summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/windres
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2011-10-25 08:03:17 +0000
committerKai Tietz <kai.tietz@onevision.com>2011-10-25 08:03:17 +0000
commite6d3929942c1373d9c68f62ca2cc91362c5916cc (patch)
tree9c812f3b44610d39d457c25b5e4ceb26e33bed03 /binutils/testsuite/binutils-all/windres
parentdc174f6737086a456647b567ac3d3597e3087019 (diff)
downloadbinutils-redhat-e6d3929942c1373d9c68f62ca2cc91362c5916cc.tar.gz
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/binutils-all/windres')
-rw-r--r--binutils/testsuite/binutils-all/windres/strtab4.rc10
-rw-r--r--binutils/testsuite/binutils-all/windres/strtab4.rsd8
2 files changed, 18 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/windres/strtab4.rc b/binutils/testsuite/binutils-all/windres/strtab4.rc
new file mode 100644
index 0000000000..cd53298034
--- /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 0000000000..9fa055d7bd
--- /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 ........