|
1 | 1 | ; Should find the bitmap if it is in the same folder as the rc file.
|
2 | 2 | ; RUN: rm -f %t.include.res
|
3 |
| -; RUN: llvm-rc /FO %t.include.res -- %p/Inputs/include.rc |
| 3 | +; RUN: llvm-rc -no-preprocess /FO %t.include.res -- %p/Inputs/include.rc |
4 | 4 | ; RUN: llvm-readobj %t.include.res | FileCheck --check-prefix=FOUND %s
|
5 | 5 |
|
6 | 6 | ; Try including files without quotes.
|
7 | 7 | ; RUN: rm -f %t.noquotes.res
|
8 |
| -; RUN: llvm-rc /FO %t.noquotes.res -- %p/Inputs/include-noquotes.rc |
| 8 | +; RUN: llvm-rc -no-preprocess /FO %t.noquotes.res -- %p/Inputs/include-noquotes.rc |
9 | 9 | ; RUN: llvm-readobj %t.noquotes.res | FileCheck --check-prefix=FOUND %s
|
10 | 10 |
|
11 | 11 | ; Should find the bitmap if the folder is explicitly specified.
|
12 | 12 | ; RUN: rm -f %t.nested-include.res
|
13 |
| -; RUN: llvm-rc /FO %t.nested-include.res /I %p/Inputs/nested -- %p/Inputs/deep-include.rc |
| 13 | +; RUN: llvm-rc -no-preprocess /FO %t.nested-include.res /I %p/Inputs/nested -- %p/Inputs/deep-include.rc |
14 | 14 | ; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
|
15 | 15 |
|
16 | 16 | ; The include dir can be specified via the INCLUDE env var too.
|
17 | 17 | ; RUN: rm -f %t.nested-include.res
|
18 |
| -; RUN: env INCLUDE=%p/Inputs/nested llvm-rc /FO %t.nested-include.res -- %p/Inputs/deep-include.rc |
| 18 | +; RUN: env INCLUDE=%p/Inputs/nested llvm-rc -no-preprocess /FO %t.nested-include.res -- %p/Inputs/deep-include.rc |
19 | 19 | ; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
|
20 | 20 |
|
21 | 21 | ; Specifying the /X option should make it ignore the INCLUDE variable.
|
22 | 22 | ; RUN: rm -f %t.nested-include.res
|
23 |
| -; RUN: not env INCLUDE=%p/Inputs/nested llvm-rc /X /FO %t.nested-include.res -- %p/Inputs/deep-include.rc 2>&1 \ |
| 23 | +; RUN: not env INCLUDE=%p/Inputs/nested llvm-rc -no-preprocess /X /FO %t.nested-include.res -- %p/Inputs/deep-include.rc 2>&1 \ |
24 | 24 | ; RUN: | FileCheck --check-prefix=MISSING %s
|
25 | 25 |
|
26 | 26 | ; Otherwise, it should not find the bitmap.
|
27 | 27 | ; RUN: rm -f %t.nested-include.res
|
28 |
| -; RUN: not llvm-rc /FO %t.nested-include.res -- %p/Inputs/deep-include.rc 2>&1 \ |
| 28 | +; RUN: not llvm-rc -no-preprocess /FO %t.nested-include.res -- %p/Inputs/deep-include.rc 2>&1 \ |
29 | 29 | ; RUN: | FileCheck --check-prefix=MISSING %s
|
30 | 30 |
|
31 | 31 | ; Should find the bitmap if the process's current working directory
|
|
34 | 34 | ; failure of other tests if run first.
|
35 | 35 | ; RUN: rm -f %t.nested-include.res
|
36 | 36 | ; RUN: cd %p/Inputs/nested
|
37 |
| -; RUN: llvm-rc /FO %t.nested-include.res -- %p/Inputs/include.rc |
| 37 | +; RUN: llvm-rc -no-preprocess /FO %t.nested-include.res -- %p/Inputs/include.rc |
38 | 38 | ; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
|
39 | 39 |
|
40 | 40 | FOUND: Resource type (int): BITMAP (ID 2)
|
|
0 commit comments