Skip to content

Commit

Permalink
Add test for #1985
Browse files Browse the repository at this point in the history
  • Loading branch information
qsctr committed Nov 18, 2023
1 parent 00e216a commit 2187d81
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions intTests/test1985/test.saw
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Test top level typedefs
typedef Foo = Int;
typedef Bar = Foo;
let thing : Bar = 2;

// Test local typedefs
let local = do {
typedef LocalFoo = Bar;
typedef LocalBar = LocalFoo;
let local_thing : LocalBar = 3;
return ();
};
3 changes: 3 additions & 0 deletions intTests/test1985/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set -e

$SAW test.saw

0 comments on commit 2187d81

Please sign in to comment.