#!perl
# Copyright (C) 2001-2007, The Perl Foundation.
# $Id: /mirror/trunk/t/compilers/imcc/syn/pasm.t 21449 2007-09-21T09:32:00.466109Z 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:
