• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Show that --radix combined with --print-file-name produces correct output.
2
3RUN: echo one > %t
4RUN: echo two >> %t
5RUN: echo three >> %t
6RUN: echo four >> %t
7RUN: echo five >> %t
8RUN: echo six >> %t
9RUN: echo seven >> %t
10RUN: echo eight >> %t
11RUN: echo nine >> %t
12RUN: echo ten >> %t
13
14RUN: llvm-strings --print-file-name %t \
15RUN:     | FileCheck %s --check-prefix CHECK-NONE -DFILE=%t --implicit-check-not={{.}}
16RUN: llvm-strings --print-file-name -t d %t \
17RUN:    | FileCheck %s --check-prefix CHECK-DEC --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
18RUN: llvm-strings --print-file-name -t o %t \
19RUN:     | FileCheck %s --check-prefix CHECK-OCT --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
20RUN: llvm-strings --print-file-name -t x %t \
21RUN:     | FileCheck %s --check-prefix CHECK-HEX --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
22
23CHECK-NONE: [[FILE]]: three
24CHECK-NONE: [[FILE]]: four
25CHECK-NONE: [[FILE]]: five
26CHECK-NONE: [[FILE]]: seven
27CHECK-NONE: [[FILE]]: eight
28CHECK-NONE: [[FILE]]: nine
29
30CHECK-DEC: [[FILE]]:       8 three
31CHECK-DEC: [[FILE]]:      14 four
32CHECK-DEC: [[FILE]]:      19 five
33CHECK-DEC: [[FILE]]:      28 seven
34CHECK-DEC: [[FILE]]:      34 eight
35CHECK-DEC: [[FILE]]:      40 nine
36
37CHECK-OCT: [[FILE]]:      10 three
38CHECK-OCT: [[FILE]]:      16 four
39CHECK-OCT: [[FILE]]:      23 five
40CHECK-OCT: [[FILE]]:      34 seven
41CHECK-OCT: [[FILE]]:      42 eight
42CHECK-OCT: [[FILE]]:      50 nine
43
44CHECK-HEX: [[FILE]]:       8 three
45CHECK-HEX: [[FILE]]:       e four
46CHECK-HEX: [[FILE]]:      13 five
47CHECK-HEX: [[FILE]]:      1c seven
48CHECK-HEX: [[FILE]]:      22 eight
49CHECK-HEX: [[FILE]]:      28 nine
50