heredoc_nse.js revision 1313:87f156db0b42
11573Srgrimes/*
288278Sphantom * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
31573Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
41573Srgrimes *
51573Srgrimes * This code is free software; you can redistribute it and/or modify it
61573Srgrimes * under the terms of the GNU General Public License version 2 only, as
71573Srgrimes * published by the Free Software Foundation.
81573Srgrimes *
91573Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT
101573Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
111573Srgrimes * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
121573Srgrimes * version 2 for more details (a copy is included in the LICENSE file that
131573Srgrimes * accompanied this code).
1473654Sobrien *
1573654Sobrien * You should have received a copy of the GNU General Public License version
1673654Sobrien * 2 along with this work; if not, write to the Free Software Foundation,
1773654Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1873654Sobrien *
1973654Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2073654Sobrien * or visit www.oracle.com if you need additional information or have any
211573Srgrimes * questions.
221573Srgrimes */
231573Srgrimes
241573Srgrimes/**
251573Srgrimes * Heredoc string should result in error with -nse even with -scripting
261573Srgrimes *
271573Srgrimes * @option -nse
281573Srgrimes * @option -scripting
291573Srgrimes * @test/compile-error
301573Srgrimes */
311573Srgrimes
321573Srgrimesvar str = <<EOF
331573SrgrimesThis is a multiple line string
341573Srgrimesinside a heredoc
351573SrgrimesEOF;
3672166Sphantom