File: parser-expr.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 (52 lines) | stat: -rw-r--r-- 2,092 bytes parent folder | download | duplicates (4)
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
50
51
52
; RUN: llvm-rc /dry-run /V -- %p/Inputs/parser-expr.rc | FileCheck %s

; CHECK:  Language: 5, Sublanguage: 1
; CHECK-NEXT:  Language: 3, Sublanguage: 2
; CHECK-NEXT:  Language: 4294967293, Sublanguage: 4294967292
; CHECK-NEXT:  Language: 0, Sublanguage: 1
; CHECK-NEXT:  Language: 2, Sublanguage: 4
; CHECK-NEXT:  Language: 3, Sublanguage: 5
; CHECK-NEXT:  Language: 2, Sublanguage: 0
; CHECK-NEXT:  Language: 4294967295, Sublanguage: 1
; CHECK-NEXT:  Language: 1, Sublanguage: 4294967295
; CHECK-NEXT:  Language: 4294967294, Sublanguage: 1
; CHECK-NEXT:  Language: 1, Sublanguage: 4294967294
; CHECK-NEXT:  Language: 2, Sublanguage: 1
; CHECK-NEXT:  Language: 3, Sublanguage: 5
; CHECK-NEXT:  Language: 0, Sublanguage: 13
; CHECK-NEXT:  Language: 5, Sublanguage: 7


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-1.rc 2>&1 | FileCheck %s --check-prefix BINARY1

; BINARY1: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got &


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-2.rc 2>&1 | FileCheck %s --check-prefix BINARY2

; BINARY2: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got |


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-3.rc 2>&1 | FileCheck %s --check-prefix BINARY3

; BINARY3: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got +


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-unary.rc 2>&1 | FileCheck %s --check-prefix UNARY

; UNARY: llvm-rc: Error parsing file: expected ',', got ~


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-1.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED1

; UNBALANCED1: llvm-rc: Error parsing file: expected ')', got ,


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-2.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED2

; UNBALANCED2: llvm-rc: Error parsing file: expected ',', got )


; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-3.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED3

; UNBALANCED3: llvm-rc: Error parsing file: expected ',', got )