mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
ae24723f0f
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
18 lines
682 B
Plaintext
18 lines
682 B
Plaintext
; RUN: llvm-rc -no-preprocess /FO %t -- %p/Inputs/cpp-output.rc
|
|
; RUN: llvm-readobj %t | FileCheck %s
|
|
|
|
; CHECK: Resource type (int): STRINGTABLE (ID 6)
|
|
; CHECK-NEXT: Resource name (int): 1
|
|
; CHECK-NEXT: Data version: 0
|
|
; CHECK-NEXT: Memory flags: 0x1030
|
|
; CHECK-NEXT: Language ID: 1033
|
|
; CHECK-NEXT: Version (major): 0
|
|
; CHECK-NEXT: Version (minor): 0
|
|
; CHECK-NEXT: Characteristics: 0
|
|
; CHECK-NEXT: Data size: 40
|
|
; CHECK-NEXT: Data: (
|
|
; CHECK-NEXT: 0000: 00000100 61000100 62000100 63000100 |....a...b...c...|
|
|
; CHECK-NEXT: 0010: 64000000 00000000 00000000 00000000 |d...............|
|
|
; CHECK-NEXT: 0020: 00000000 00000000 |........|
|
|
; CHECK-NEXT: )
|