aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-07-09 13:45:01 +0100
committerNick Clifton <nickc@redhat.com>2020-07-09 13:45:01 +0100
commitd90171dec11cdde259564c1ca728043b7e82427e (patch)
treeb5522fea01f73a63eb4209a628548caf29a1aa75 /binutils/testsuite
parente3fdc001d359d6bcd033c1276c772e72d3f49078 (diff)
downloadgdb-d90171dec11cdde259564c1ca728043b7e82427e.zip
gdb-d90171dec11cdde259564c1ca728043b7e82427e.tar.gz
gdb-d90171dec11cdde259564c1ca728043b7e82427e.tar.bz2
Update the Windows Resource compiler (windres) to support the OWNERDRAW and BITMAP menuitem flags.
binutils* rclex.c: Add OWNERDRAW keyword. * rcparse.y: Add OWNERDRAW token. (menuitem_flag) Add BITMAP and OWNERDRAW entries. * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and BITMAP flags. * windres.c (extended_menuitems): Likewise. * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/binutils-all/windres/menuitem_flags.rc16
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/windres/menuitem_flags.rc b/binutils/testsuite/binutils-all/windres/menuitem_flags.rc
new file mode 100644
index 0000000..cbd59e4
--- /dev/null
+++ b/binutils/testsuite/binutils-all/windres/menuitem_flags.rc
@@ -0,0 +1,16 @@
+// parse-only
+
+1 MENU
+{
+ POPUP "&File"
+ {
+ MENUITEM "This is a test #1", 100, BITMAP
+ MENUITEM "This is a test #2", 101, OWNERDRAW
+ MENUITEM "This is a test #3", 102, CHECKED
+ MENUITEM "This is a test #4", 103, GRAYED
+ MENUITEM "This is a test #5", 104, HELP
+ MENUITEM "This is a test #6", 105, INACTIVE
+ MENUITEM "This is a test #7", 106, MENUBARBREAK
+ MENUITEM "This is a test #8", 107, MENUBREAK
+ }
+}