#!perl
# Copyright (C) 2001-2007, The Perl Foundation.
# $Id: pasm.t 21449 2007-09-21 09:32:00Z paultcochrane $
# Test some basic pasm errors, not pir
use strict;
use warnings;
use lib qw( . lib ../lib ../../lib );
use Test::More;
use Parrot::Config;
use Parrot::Test tests => 1;
# I am not sure if it is really important to support this, but at
# least, we should not segfault when it happens :->
pasm_error_output_like( "print \"Hi\\n\"", <<'OUT', "No new line at end of file" );
/^error:imcc:syntax error, unexpected EOM, expecting '\\n'/
OUT
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
syntax highlighted by Code2HTML, v. 0.9.1