JDK-8020437.js revision 432:d763da247244
1249666Strociny/*
2249666Strociny * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3249666Strociny * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4249666Strociny *
5249666Strociny * This code is free software; you can redistribute it and/or modify it
6249666Strociny * under the terms of the GNU General Public License version 2 only, as
7249666Strociny * published by the Free Software Foundation.
8249666Strociny *
9249666Strociny * This code is distributed in the hope that it will be useful, but WITHOUT
10249666Strociny * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11249666Strociny * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12249666Strociny * version 2 for more details (a copy is included in the LICENSE file that
13249666Strociny * accompanied this code).
14249666Strociny *
15249666Strociny * You should have received a copy of the GNU General Public License version
16249666Strociny * 2 along with this work; if not, write to the Free Software Foundation,
17249666Strociny * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18249666Strociny *
19249666Strociny * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20249666Strociny * or visit www.oracle.com if you need additional information or have any
21249666Strociny * questions.
22249666Strociny */
23249666Strociny
24249666Strociny/**
25249666Strociny * JDK-8020437: Wrong handling of line numbers with multiline string literals
26249666Strociny *
27249731Strociny * @test/compile-error
28249731Strociny * @option -scripting
29249731Strociny */
30249666Strociny
31249666Strocinyprint({
32249679Strociny   text: <<EOF
33249666StrocinyThis is a multiple line
34249666Strocinytext inside a sting literal.
35249666StrocinyRun this with -scripting option.
36249666StrocinyEOF);  // missing "}" to end object literal
37249666Strociny