summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/unit/parse/tiger_driver/test_parse_no_check.cc
blob: 81ebea2c898bcedac7b8cf4e83287ede2847f37f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <ast/exp.hh>
#include <ast/libast.hh>
#include <criterion/criterion.h>
#include <criterion/assert.h>
#include <parse/libparse.hh>

Test(parse_no_check, simple)
{
  ast::Exp* e = parse::parse("a + b");
}

Test(parse_no_check, let_function)
{
  parse::parse("let"
               "function f(a : int, b : string) : int = a"
               "in"
               "a"
               "end");
}