mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-21 04:46:17 +00:00

Summary: Bash interperets the '?' character as matching an arbitrary character. On systems that have a file or directory with exactly one character in their root directory, '/?' gets reinterpreted into that pathname, which fails to match the expected Help text for llvm-rc. This patch quotes the '/?' to avoid that edge case. Reviewers: mnbvmar, ecbeckmann, rnk Reviewed By: rnk Subscribers: dyung, ruiu, llvm-commits Differential Revision: https://reviews.llvm.org/D35852 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309133 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
952 B
Plaintext
21 lines
952 B
Plaintext
; RUN: llvm-rc /h > %t1
|
|
; RUN: llvm-rc '/?' > %t2
|
|
; RUN: diff %t1 %t2
|
|
; RUN: FileCheck -input-file=%t1 %s
|
|
|
|
; CHECK: OVERVIEW: Resource Converter
|
|
; CHECK-DAG: USAGE: rc [options] <inputs>
|
|
; CHECK-DAG: OPTIONS:
|
|
; CHECK-NEXT: /? Display this help and exit.
|
|
; CHECK-NEXT: /D <value> Define a symbol for the C preprocessor.
|
|
; CHECK-NEXT: /FO <value> Change the output file location.
|
|
; CHECK-NEXT: /H Display this help and exit.
|
|
; CHECK-NEXT: /I <value> Add an include path.
|
|
; CHECK-NEXT: /LN <value> Set the default language name.
|
|
; CHECK-NEXT: /L <value> Set the default language identifier.
|
|
; CHECK-NEXT: /N Null-terminate all strings in the string table.
|
|
; CHECK-NEXT: /U <value> Undefine a symbol for the C preprocessor.
|
|
; CHECK-NEXT: /V Be verbose.
|
|
; CHECK-NEXT: /X Ignore 'include' variable.
|
|
; CHECK-NEXT: /Y Suppress warnings on duplicate resource IDs.
|