File: radix-filename.test

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (49 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
## Show that --radix combined with --print-file-name produces correct output.

RUN: echo one > %t
RUN: echo two >> %t
RUN: echo three >> %t
RUN: echo four >> %t
RUN: echo five >> %t
RUN: echo six >> %t
RUN: echo seven >> %t
RUN: echo eight >> %t
RUN: echo nine >> %t
RUN: echo ten >> %t

RUN: llvm-strings --print-file-name %t \
RUN:     | FileCheck %s --check-prefix CHECK-NONE -DFILE=%t --implicit-check-not={{.}}
RUN: llvm-strings --print-file-name -t d %t \
RUN:    | FileCheck %s --check-prefix CHECK-DEC --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
RUN: llvm-strings --print-file-name -t o %t \
RUN:     | FileCheck %s --check-prefix CHECK-OCT --strict-whitespace -DFILE=%t --implicit-check-not={{.}}
RUN: llvm-strings --print-file-name -t x %t \
RUN:     | FileCheck %s --check-prefix CHECK-HEX --strict-whitespace -DFILE=%t --implicit-check-not={{.}}

CHECK-NONE: [[FILE]]: three
CHECK-NONE: [[FILE]]: four
CHECK-NONE: [[FILE]]: five
CHECK-NONE: [[FILE]]: seven
CHECK-NONE: [[FILE]]: eight
CHECK-NONE: [[FILE]]: nine

CHECK-DEC: [[FILE]]:       8 three
CHECK-DEC: [[FILE]]:      14 four
CHECK-DEC: [[FILE]]:      19 five
CHECK-DEC: [[FILE]]:      28 seven
CHECK-DEC: [[FILE]]:      34 eight
CHECK-DEC: [[FILE]]:      40 nine

CHECK-OCT: [[FILE]]:      10 three
CHECK-OCT: [[FILE]]:      16 four
CHECK-OCT: [[FILE]]:      23 five
CHECK-OCT: [[FILE]]:      34 seven
CHECK-OCT: [[FILE]]:      42 eight
CHECK-OCT: [[FILE]]:      50 nine

CHECK-HEX: [[FILE]]:       8 three
CHECK-HEX: [[FILE]]:       e four
CHECK-HEX: [[FILE]]:      13 five
CHECK-HEX: [[FILE]]:      1c seven
CHECK-HEX: [[FILE]]:      22 eight
CHECK-HEX: [[FILE]]:      28 nine