1; RUN: llvm-rc /dry-run /V -- %p/Inputs/parser-expr.rc | FileCheck %s 2 3; CHECK: Language: 5, Sublanguage: 1 4; CHECK-NEXT: Language: 3, Sublanguage: 2 5; CHECK-NEXT: Language: 4294967293, Sublanguage: 4294967292 6; CHECK-NEXT: Language: 0, Sublanguage: 1 7; CHECK-NEXT: Language: 2, Sublanguage: 4 8; CHECK-NEXT: Language: 3, Sublanguage: 5 9; CHECK-NEXT: Language: 2, Sublanguage: 0 10; CHECK-NEXT: Language: 4294967295, Sublanguage: 1 11; CHECK-NEXT: Language: 1, Sublanguage: 4294967295 12; CHECK-NEXT: Language: 4294967294, Sublanguage: 1 13; CHECK-NEXT: Language: 1, Sublanguage: 4294967294 14; CHECK-NEXT: Language: 2, Sublanguage: 1 15; CHECK-NEXT: Language: 3, Sublanguage: 5 16; CHECK-NEXT: Language: 0, Sublanguage: 13 17; CHECK-NEXT: Language: 5, Sublanguage: 7 18 19 20; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-1.rc 2>&1 | FileCheck %s --check-prefix BINARY1 21 22; BINARY1: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got & 23 24 25; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-2.rc 2>&1 | FileCheck %s --check-prefix BINARY2 26 27; BINARY2: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got | 28 29 30; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-3.rc 2>&1 | FileCheck %s --check-prefix BINARY3 31 32; BINARY3: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got + 33 34 35; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-unary.rc 2>&1 | FileCheck %s --check-prefix UNARY 36 37; UNARY: llvm-rc: Error parsing file: expected ',', got ~ 38 39 40; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-1.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED1 41 42; UNBALANCED1: llvm-rc: Error parsing file: expected ')', got , 43 44 45; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-2.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED2 46 47; UNBALANCED2: llvm-rc: Error parsing file: expected ',', got ) 48 49 50; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-3.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED3 51 52; UNBALANCED3: llvm-rc: Error parsing file: expected ',', got ) 53