27 lines · plain
1// This file contains various failure test cases related to the structure of2// the string section.3 4//===--------------------------------------------------------------------===//5// Count6//===--------------------------------------------------------------------===//7 8// RUN: not mlir-opt %S/invalid-string_section-count.mlirbc 2>&1 | FileCheck %s --check-prefix=COUNT9// COUNT: attempting to parse a byte at the end of the bytecode10 11//===--------------------------------------------------------------------===//12// Invalid String13//===--------------------------------------------------------------------===//14 15// RUN: not mlir-opt %S/invalid-string_section-no_string.mlirbc 2>&1 | FileCheck %s --check-prefix=NO_STRING16// NO_STRING: attempting to parse a byte at the end of the bytecode17 18// RUN: not mlir-opt %S/invalid-string_section-large_string.mlirbc 2>&1 | FileCheck %s --check-prefix=LARGE_STRING19// LARGE_STRING: string size exceeds the available data size20 21//===--------------------------------------------------------------------===//22// Trailing data23//===--------------------------------------------------------------------===//24 25// RUN: not mlir-opt %S/invalid-string_section-trailing_data.mlirbc 2>&1 | FileCheck %s --check-prefix=TRAILING_DATA26// TRAILING_DATA: unexpected trailing data between the offsets for strings and their data27