Skip to content

Commit

Permalink
test:hl: Cleanup fun-ptr test regexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Sep 6, 2023
1 parent 6cff291 commit dd492a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/vast/Dialect/HighLevel/fun-ptr-a.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// RUN: vast-front -vast-emit-mlir=hl -o - %s | FileCheck %s
// RUN: %vast-front -vast-emit-mlir=hl -o - %s | FileCheck %s

void f(void g(void)) {
// CHECK: {{.*hl.indirect_call .* : !hl.decayed<!hl.ptr<\(\) -> !hl.void>>\(\) : \(\) -> !hl.void}}
// CHECK: hl.indirect_call {{.*}} : !hl.decayed<!hl.ptr<() -> !hl.void>>() : () -> !hl.void
g();
}

void h(void) {}

int main (void) {
// CHECK: {{.*hl.implicit_cast .* FunctionToPointerDecay.*}}
// CHECK: {{.*hl.call .* : \(!hl.lvalue<!hl.ptr<\(\) -> !hl.void>>\) -> !hl.void}}
// CHECK: FunctionToPointerDecay
// CHECK: hl.call {{.*}} : (!hl.lvalue<!hl.ptr<() -> !hl.void>>) -> !hl.void
f(h);
return 0;
}

0 comments on commit dd492a6

Please sign in to comment.