use v6;

use Test;

plan 9;

# L<S04/"Statement parsing"/"statement termination">

# the 'empty statement' case responsible for the creation of this test file
eval_lives_ok(';', 'empty statement');

eval_lives_ok('my $x = 2', 'simple statement no semi');
eval_lives_ok('my $x =
9', 'simple statement on two lines no semi');
eval_lives_ok('my $x = 2;', 'simple statement with semi');
eval_lives_ok('{my $x = 2}', 'end of closure terminator');
eval_lives_ok('{my $x =
2;}', 'double terminator');
eval_lives_ok(';my $x = 2;{my $x = 2;;};', 'extra terminators');

eval_dies_ok('{my $x = 2;', 'open closure');
eval_dies_ok('my $x = ', 'incomplete expression');

Add some tests for statement termination and empty statements (contributed by Ronald Schmidt)
Add some tests for statement termination and empty statements
(contributed by Ronald Schmidt)


git-svn-id: 53605643c415f7495558be95614cf14171f1db78@20927 c213334d-75ef-0310-aa23-eaa082d1ae64
