1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/tools/llvm-rc/not-expr.test
Martin Storsjö ae24723f0f [llvm-rc] Run clang to preprocess input files
Allow opting out from preprocessing with a command line argument.

Update tests to pass -no-preprocess to make it not try to use clang
(which isn't a build level dependency of llvm-rc), but add a test that
does preprocessing under clang/test/Preprocessor.

Update a few options to allow them both joined (as -DFOO) and separate
(-D BR), as rc.exe allows both forms of them.

With the verbose flag set, this prints the preprocessing command
used (which differs from what rc.exe does).

Tests under llvm/test/tools/llvm-rc only test constructing the
preprocessor commands, while tests under clang/test/Preprocessor test
actually running the preprocessor.

Differential Revision: https://reviews.llvm.org/D100755
2021-04-21 11:50:10 +03:00

21 lines
974 B
Plaintext

; RUN: llvm-rc -no-preprocess /FO %t -- %p/Inputs/not-expr.rc
; RUN: llvm-readobj %t | FileCheck %s --check-prefix=NOTEXPR
; NOTEXPR: Resource type (int): DIALOG (ID 5)
; NOTEXPR-NEXT: Resource name (string): NOT
; NOTEXPR-NEXT: Data version: 0
; NOTEXPR-NEXT: Memory flags: 0x1030
; NOTEXPR-NEXT: Language ID: 1033
; NOTEXPR-NEXT: Version (major): 0
; NOTEXPR-NEXT: Version (minor): 0
; NOTEXPR-NEXT: Characteristics: 0
; NOTEXPR-NEXT: Data size: 96
; NOTEXPR-NEXT: Data: (
; NOTEXPR-NEXT: 0000: 0100FFFF 04000000 F7FFFFFF 03FF00FF |................|
; NOTEXPR-NEXT: 0010: 02000000 02003C00 03000000 00000000 |......<.........|
; NOTEXPR-NEXT: 0020: 00000000 00000000 22000050 00000A00 |........"..P....|
; NOTEXPR-NEXT: 0030: 00000000 00000000 FFFF8000 00000000 |................|
; NOTEXPR-NEXT: 0040: 00000000 00000000 01000050 00000000 |...........P....|
; NOTEXPR-NEXT: 0050: 00000000 01000000 FFFF8000 00000000 |................|
; NOTEXPR-NEXT: )