1 ## Show that llvm-strings can handle the -t/--radix switch properly.
14 RUN: llvm-strings %t | FileCheck %s -check-prefix CHECK-NONE --implicit-check-not={{.}}
15 RUN: llvm-strings -t d %t | FileCheck %s -check-prefix CHECK-DEC --strict-whitespace --implicit-check-not={{.}}
16 RUN: llvm-strings -t o %t | FileCheck %s -check-prefix CHECK-OCT --strict-whitespace --implicit-check-not={{.}}
17 RUN: llvm-strings -t x %t | FileCheck %s -check-prefix CHECK-HEX --strict-whitespace --implicit-check-not={{.}}
19 ## Show --radix works too.
20 RUN: llvm-strings --radix d %t | FileCheck %s -check-prefix CHECK-DEC --strict-whitespace
21 RUN: llvm-strings --radix o %t | FileCheck %s -check-prefix CHECK-OCT --strict-whitespace
22 RUN: llvm-strings --radix x %t | FileCheck %s -check-prefix CHECK-HEX --strict-whitespace
24 ## Show different syntaxes work.
25 RUN: llvm-strings --radix=d %t | FileCheck %s -check-prefix CHECK-DEC --strict-whitespace
26 RUN: llvm-strings -t=d %t | FileCheck %s -check-prefix CHECK-DEC --strict-whitespace
28 CHECK-NONE: {{^}}three
31 CHECK-NONE: {{^}}seven
32 CHECK-NONE: {{^}}eight
35 CHECK-DEC: {{^}} 8 three
36 CHECK-DEC: {{^}} 14 four
37 CHECK-DEC: {{^}} 19 five
38 CHECK-DEC: {{^}} 28 seven
39 CHECK-DEC: {{^}} 34 eight
40 CHECK-DEC: {{^}} 40 nine
42 CHECK-OCT: {{^}} 10 three
43 CHECK-OCT: {{^}} 16 four
44 CHECK-OCT: {{^}} 23 five
45 CHECK-OCT: {{^}} 34 seven
46 CHECK-OCT: {{^}} 42 eight
47 CHECK-OCT: {{^}} 50 nine
49 CHECK-HEX: {{^}} 8 three
50 CHECK-HEX: {{^}} e four
51 CHECK-HEX: {{^}} 13 five
52 CHECK-HEX: {{^}} 1c seven
53 CHECK-HEX: {{^}} 22 eight
54 CHECK-HEX: {{^}} 28 nine
56 ## Show that an invalid value is rejected.
57 RUN: not llvm-strings --radix z %t 2>&1 | FileCheck %s --check-prefix=INVALID
58 INVALID: llvm-strings{{.*}}: for the --radix option: Cannot find option named 'z'!