Skip to content

Commit

Permalink
sem: Update quiet/semantic/s02.c test case; should now report a missi…
Browse files Browse the repository at this point in the history
…ng return error.
  • Loading branch information
mewmew committed May 3, 2016
1 parent ae842e7 commit 3e1e419
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sem/sem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func TestCheckValid(t *testing.T) {
path string
}{
{path: "../testdata/quiet/semantic/s01.c"},
{path: "../testdata/quiet/semantic/s02.c"},
{path: "../testdata/quiet/semantic/s03.c"},
{path: "../testdata/quiet/semantic/s04.c"},
{path: "../testdata/quiet/semantic/s05.c"},
Expand Down Expand Up @@ -70,6 +69,12 @@ func TestCheckError(t *testing.T) {
path string
want string
}{
{
path: "../testdata/quiet/semantic/s02.c",
want: `(../testdata/quiet/semantic/s02.c:3) error: missing return at end of non-void function "foo"
; }
^`,
},
{
path: "../testdata/incorrect/semantic/se01.c",
want: `(../testdata/incorrect/semantic/se01.c:5) error: undeclared identifier "b"
Expand Down

0 comments on commit 3e1e419

Please sign in to comment.