1; RUN: not llvm-rc /V /FO %t.res -- %p/Inputs/tokens.rc | FileCheck %s
2; llvm-rc fails now on this sample because it is an invalid resource file
3; script. We silence the error message and just analyze the output.
4
5; CHECK:  Int: 1; int value = 1
6; CHECK-NEXT:  Plus: +
7; CHECK-NEXT:  Int: 2; int value = 2
8; CHECK-NEXT:  Minus: -
9; CHECK-NEXT:  Int: 3214L; int value = 3214
10; CHECK-NEXT:  Amp: &
11; CHECK-NEXT:  Int: 0x120894; int value = 1181844
12; CHECK-NEXT:  Int: 032173; int value = 13435
13; CHECK-NEXT:  Int: 2; int value = 2
14; CHECK-NEXT:  Pipe: |
15; CHECK-NEXT:  Amp: &
16; CHECK-NEXT:  Tilde: ~
17; CHECK-NEXT:  Plus: +
18; CHECK-NEXT:  LeftParen: (
19; CHECK-NEXT:  Minus: -
20; CHECK-NEXT:  Int: 7; int value = 7
21; CHECK-NEXT:  RightParen: )
22; CHECK-NEXT:  BlockBegin: {
23; CHECK-NEXT:  Int: 0xabcdef; int value = 11259375
24; CHECK-NEXT:  Int: 0xABCDEFl; int value = 11259375
25; CHECK-NEXT:  BlockEnd: }
26; CHECK-NEXT:  BlockBegin: Begin
27; CHECK-NEXT:  BlockEnd: End
28; CHECK-NEXT:  Identifier: He11o
29; CHECK-NEXT:  Identifier: LLVM
30; CHECK-NEXT:  String: "RC string test."
31; CHECK-NEXT:  Comma: ,
32; CHECK-NEXT:  String: L"Another RC string test.'&{"
33; CHECK-NEXT:  Comma: ,
34; CHECK-NEXT:  Int: 42; int value = 42
35; CHECK-NEXT:  Comma: ,
36; CHECK-NEXT:  Int: 100; int value = 100
37; CHECK-NEXT:  Identifier: Block
38; CHECK-NEXT:  Identifier: Comment
39; CHECK-NEXT:  Identifier: Ident
40; CHECK-NEXT:  Identifier: ifier
41; CHECK-NEXT:  Identifier: Line
42; CHECK-NEXT:  Identifier: Comment
43; CHECK-NEXT:  Identifier: Multiple
44; CHECK-NEXT:  Identifier: on
45; CHECK-NEXT:  Identifier: single
46; CHECK-NEXT:  String: ":))"
47