Skip to content

Commit

Permalink
test: Fix and turn off crashing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Oct 6, 2023
1 parent 535ea54 commit a2dc98d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/vast/Compile/SingleSource/argc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %vast-front -o %t %s && (%t 1 3 4; test $? -eq 4)
// RUN: %vast-front -o %t %s && (%t; test $? -eq 1)

int main(int argc, char **)
int main(int argc, char **argv)
{
return argc;
}
1 change: 1 addition & 0 deletions test/vast/Compile/SingleSource/label-a.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %vast-front -o %t %s && (%t; test $? -eq 2)
// RUN: %vast-front -o %t %s && (%t 1 2 3; test $? -eq 5)
// REQUIRES: block-iterator-bug

int main(int argc, char **argv)
{
Expand Down
2 changes: 2 additions & 0 deletions test/vast/Dialect/HighLevel/class-a.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// RUN: %vast-cc --from-source %s | %file-check %s
// RUN: %vast-cc --from-source %s > %t && %vast-opt %t | diff -B %t -
// REQUIRES: c++


// CHECK: hl.class "A" :
class A {};
Expand Down
6 changes: 3 additions & 3 deletions test/vast/Transform/HL/ResolveTypedefs/var-a.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

typedef int INT;

// CHECK: {{.* = hl.var "a".*!hl.lvalue<si32>.*}}
// CHECK: {{.*}} = hl.var "a" : !hl.lvalue<si32>
INT a = 0;

typedef INT IINT;

// CHECK: {{.* = hl.var "b".*!hl.lvalue<si32>.*}}
// CHECK: {{.*}} = hl.var "b" : !hl.lvalue<si32>
IINT b = 0;

typedef IINT IIINT;

// CHECK: {{.* = hl.var "c".*!hl.lvalue<si32>.*}}
// CHECK: {{.*}} = hl.var "c" : !hl.lvalue<si32>
IIINT c = 0;

0 comments on commit a2dc98d

Please sign in to comment.