Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/tools/llvm-rc/parser.test
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
; PGOOD-NEXT: Control (14): LTEXT, title: "Hello world!", loc: (20, 20), size: [50, 50] | ; PGOOD-NEXT: Control (14): LTEXT, title: "Hello world!", loc: (20, 20), size: [50, 50] | ||||
; PGOOD-NEXT: Control (50): RTEXT, title: "Heh", loc: (51, 52), size: [53, 54], style: 55, ext. style: 56 | ; PGOOD-NEXT: Control (50): RTEXT, title: "Heh", loc: (51, 52), size: [53, 54], style: 55, ext. style: 56 | ||||
; PGOOD-NEXT: Control (1): CTEXT, title: "Muuuu", loc: (2, 3), size: [4, 5], style: 6, ext. style: 7, help ID: 8 | ; PGOOD-NEXT: Control (1): CTEXT, title: "Muuuu", loc: (2, 3), size: [4, 5], style: 6, ext. style: 7, help ID: 8 | ||||
; PGOOD-NEXT: Control (1): PUSHBUTTON, title: "Muuuu", loc: (2, 3), size: [4, 5], style: 6, ext. style: 7, help ID: 8 | ; PGOOD-NEXT: Control (1): PUSHBUTTON, title: "Muuuu", loc: (2, 3), size: [4, 5], style: 6, ext. style: 7, help ID: 8 | ||||
; PGOOD-NEXT: Control (1): DEFPUSHBUTTON, title: "Muuuu", loc: (2, 3), size: [4, 5], style: 6 | ; PGOOD-NEXT: Control (1): DEFPUSHBUTTON, title: "Muuuu", loc: (2, 3), size: [4, 5], style: 6 | ||||
; PGOOD-NEXT: Control (5): EDITTEXT, title: , loc: (1, 2), size: [4, 7], style: 8 | ; PGOOD-NEXT: Control (5): EDITTEXT, title: , loc: (1, 2), size: [4, 7], style: 8 | ||||
; PGOOD-NEXT: Dialog (25): loc: (1, 2), size: [3, 4], help ID: 0 | ; PGOOD-NEXT: Dialog (25): loc: (1, 2), size: [3, 4], help ID: 0 | ||||
; PGOOD-NEXT: DialogEx (26): loc: (1, 2), size: [3, 4], help ID: 0 | ; PGOOD-NEXT: DialogEx (26): loc: (1, 2), size: [3, 4], help ID: 0 | ||||
; PGOOD-NEXT: VersionInfo (1): | |||||
; PGOOD-NEXT: Fixed: FILEVERSION: 1 2 3 4 | |||||
; PGOOD-NEXT: Fixed: PRODUCTVERSION: 5 6 7 8 | |||||
; PGOOD-NEXT: Fixed: FILEFLAGSMASK: 50 | |||||
; PGOOD-NEXT: Fixed: FILEFLAGS: 555 | |||||
; PGOOD-NEXT: Fixed: FILEOS: 110 | |||||
; PGOOD-NEXT: Fixed: FILETYPE: 555555 | |||||
; PGOOD-NEXT: Fixed: FILESUBTYPE: 14 | |||||
; PGOOD-NEXT: Start of block (name: ) | |||||
; PGOOD-NEXT: Start of block (name: "StringFileInfo") | |||||
; PGOOD-NEXT: Start of block (name: "040904E4") | |||||
; PGOOD-NEXT: "CompanyName" => "a" | |||||
; PGOOD-NEXT: "FileDescription" => "b" | |||||
; PGOOD-NEXT: "FileVersion" => "c" | |||||
; PGOOD-NEXT: "InternalName" => "d" | |||||
; PGOOD-NEXT: "LegalCopyright" => "e" | |||||
; PGOOD-NEXT: "LegalTrademarks1" => "f" | |||||
; PGOOD-NEXT: "LegalTrademarks2" => "g" | |||||
; PGOOD-NEXT: "OriginalFilename" => L"h" | |||||
; PGOOD-NEXT: "ProductName" => "ii" 2 3 | |||||
; PGOOD-NEXT: "ProductVersion" => | |||||
; PGOOD-NEXT: End of block | |||||
; PGOOD-NEXT: End of block | |||||
; PGOOD-NEXT: Start of block (name: "VarFileInfo") | |||||
; PGOOD-NEXT: "Translation" => 1033 1252 | |||||
; PGOOD-NEXT: End of block | |||||
; PGOOD-NEXT: End of block | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-stringtable-no-string.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE1 | ; RUN: not llvm-rc /V %p/Inputs/parser-stringtable-no-string.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE1 | ||||
; PSTRINGTABLE1: llvm-rc: Error parsing file: expected string, got } | ; PSTRINGTABLE1: llvm-rc: Error parsing file: expected string, got } | ||||
; RUN: not llvm-rc /V %p/Inputs/parser-stringtable-weird-option.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE2 | ; RUN: not llvm-rc /V %p/Inputs/parser-stringtable-weird-option.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE2 | ||||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-dialog-unknown-type.rc 2>&1 | FileCheck %s --check-prefix PDIALOG4 | ; RUN: not llvm-rc /V %p/Inputs/parser-dialog-unknown-type.rc 2>&1 | FileCheck %s --check-prefix PDIALOG4 | ||||
; PDIALOG4: llvm-rc: Error parsing file: expected control type, END or '}', got UNKNOWN | ; PDIALOG4: llvm-rc: Error parsing file: expected control type, END or '}', got UNKNOWN | ||||
; RUN: not llvm-rc /V %p/Inputs/parser-dialog-unnecessary-string.rc 2>&1 | FileCheck %s --check-prefix PDIALOG5 | ; RUN: not llvm-rc /V %p/Inputs/parser-dialog-unnecessary-string.rc 2>&1 | FileCheck %s --check-prefix PDIALOG5 | ||||
; PDIALOG5: llvm-rc: Error parsing file: expected integer, got "This shouldn't be here" | ; PDIALOG5: llvm-rc: Error parsing file: expected integer, got "This shouldn't be here" | ||||
; RUN: not llvm-rc /V %p/Inputs/parser-versioninfo-wrong-fixed.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO1 | |||||
; PVERSIONINFO1: llvm-rc: Error parsing file: expected fixed VERSIONINFO statement type, got WEIRDFIXED | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-versioninfo-named-main-block.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO2 | |||||
; PVERSIONINFO2: llvm-rc: Error parsing file: expected fixed VERSIONINFO statement type, got BLOCK | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-versioninfo-unnamed-inner-block.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO3 | |||||
; PVERSIONINFO3: llvm-rc: Error parsing file: expected string, got { | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-versioninfo-unnamed-value.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO4 | |||||
; PVERSIONINFO4: llvm-rc: Error parsing file: expected string, got END | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-versioninfo-bad-type.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO5 | |||||
; PVERSIONINFO5: llvm-rc: Error parsing file: expected BLOCK or VALUE, got INCORRECT | |||||
; RUN: not llvm-rc /V %p/Inputs/parser-versioninfo-repeated-fixed.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO6 | |||||
; PVERSIONINFO6: llvm-rc: Error parsing file: expected yet unread fixed VERSIONINFO statement type, got FILEVERSION |