diff --git a/test/parsers/rle-a.c b/test/parsers/rle-a.c index 0905dd9841..dd194aa87e 100644 --- a/test/parsers/rle-a.c +++ b/test/parsers/rle-a.c @@ -1,4 +1,5 @@ // RUN: %vast-front -vast-emit-mlir=hl %s -o - | %file-check %s -check-prefix=HL +// RUN: %vast-front -vast-show-locs -vast-loc-attrs -vast-emit-mlir=hl %s -o - | %detect-parsers -vast-hl-to-parser -parser-source-to-sarif=output=/dev/stdout out.mlir -o /dev/null | %file-check %s -check-prefix=SARIF #include #include @@ -38,10 +39,14 @@ void parse_binary_file(const char *filename) { // Read header (4 bytes) - contains length of compressed data uint32_t compressed_length; + // SARIF: "startColumn": 5 + // SARIF: "startLine": 43 fread(&compressed_length, sizeof(uint32_t), 1, file); // Allocate memory for compressed data uint8_t *compressed_data = (uint8_t *)malloc(compressed_length); + // SARIF: "startColumn": 5 + // SARIF: "startLine": 49 fread(compressed_data, sizeof(uint8_t), compressed_length, file); // Close the file after reading