File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %vast-front -vast-emit-mlir=hl %s -o - | %file-check %s -check-prefix=HL
2
+ // RUN: %vast-front -vast-show-locs -vast-loc-attrs -vast-emit-mlir=hl %s -o - | %vast-opt -vast-hl-to-lazy-regions -o %t.mlir
3
+ // RUN: %vast-detect-parsers -vast-hl-to-parser -vast-parser-reconcile-casts -reconcile-unrealized-casts %t.mlir -o - | %file-check %s -check-prefix=PARSER
2
4
3
5
#include <stdio.h>
4
6
#include <ctype.h>
5
7
6
8
// HL: hl.func @parse_number
9
+ // PARSER: hl.func @parse_number
7
10
int parse_number (const char * * input ) {
8
11
int value = 0 ;
9
12
while (isdigit (* * input )) {
@@ -14,6 +17,7 @@ int parse_number(const char **input) {
14
17
}
15
18
16
19
// HL: hl.func @add_two_numbers
20
+ // PARSER: hl.func @add_two_numbers
17
21
int add_two_numbers (const char * input ) {
18
22
int num1 = parse_number (& input );
19
23
while (isspace (* input )) input ++ ; // Skip spaces
You can’t perform that action at this time.
0 commit comments