summaryrefslogtreecommitdiff
path: root/tests/posixly_correct.l
diff options
context:
space:
mode:
Diffstat (limited to 'tests/posixly_correct.l')
-rw-r--r--tests/posixly_correct.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/posixly_correct.l b/tests/posixly_correct.l
index aff9cbd..715bb27 100644
--- a/tests/posixly_correct.l
+++ b/tests/posixly_correct.l
@@ -53,7 +53,7 @@ ab{3} tests_ok[0] = 1; return 0;
%%
-int main ()
+int main (void)
{
YY_BUFFER_STATE state;
int i;
@@ -63,9 +63,9 @@ int main ()
/* Run the tests */
for (i=0; i < NUM_TESTS; i++){
- printf("Testing: yy_scan_string(%s): ", tests[i]);
- state = yy_scan_string(tests[i]);
- yylex();
+ printf("Testing: test_scan_string(%s): ", tests[i]);
+ state = test_scan_string(tests[i]);
+ testlex();
yy_delete_buffer(state);
printf("... %s\n", tests_ok[i] ? "OK" : "FAILED");
}