diff options
Diffstat (limited to 'llvm/test/tools/llvm-rc/Inputs/not-expr.rc')
-rw-r--r-- | llvm/test/tools/llvm-rc/Inputs/not-expr.rc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-rc/Inputs/not-expr.rc b/llvm/test/tools/llvm-rc/Inputs/not-expr.rc new file mode 100644 index 00000000000..1b5c8177393 --- /dev/null +++ b/llvm/test/tools/llvm-rc/Inputs/not-expr.rc @@ -0,0 +1,17 @@ +not DIALOGEX // not as an identifier +0, +3 | not 1, // = 2 +61 + not 1, // = 60 +not 1 | 3, // = 3 +7 | (not 1 + not 2) // = 4 +STYLE 0xff00ff03 & ~(not (1|2)) // = 0xff00ff03 +EXSTYLE 0xff00ff03 | ~(not (1|2)) | not 8 // = 0xfffffff7 +{ + GROUPBOX "", 0, + not 1, // = 0 + 15 + (((not 1 | not 2 | not 4) | 2)), // = 10 + 0, 0, 0x34 - (not 1) + (not 0x14) // expression evaluates to 0x20 with not mask 0x15, which clears 0x5 bits of default + // groupbox class style 0x50000007, resulting with style 0x50000022 + GROUPBOX "", 1, 0,0,0,0,(not 7) | 1 // expression evaluates to 1 with not mask 0x7, which clears 0x7 bits of groupbox default + // class style 0x50000007, but sets bit 1, resulting with style 0x50000001 +} |