JDK-8026039.js revision 877:cf4d2252d444
138780Snsouch/*
238780Snsouch * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
338780Snsouch * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
438780Snsouch *
538780Snsouch * This code is free software; you can redistribute it and/or modify it
638780Snsouch * under the terms of the GNU General Public License version 2 only, as
738780Snsouch * published by the Free Software Foundation.
838780Snsouch *
938780Snsouch * This code is distributed in the hope that it will be useful, but WITHOUT
1038780Snsouch * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1138780Snsouch * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1238780Snsouch * version 2 for more details (a copy is included in the LICENSE file that
1338780Snsouch * accompanied this code).
1438780Snsouch *
1538780Snsouch * You should have received a copy of the GNU General Public License version
1638780Snsouch * 2 along with this work; if not, write to the Free Software Foundation,
1738780Snsouch * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1838780Snsouch *
1938780Snsouch * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2038780Snsouch * or visit www.oracle.com if you need additional information or have any
2138780Snsouch * questions.
2238780Snsouch */
2338780Snsouch
2438780Snsouch/**
2538780Snsouch * JDK-8026039: future strict names are allowed as function name and argument name of a strict function
2650477Speter *
2738780Snsouch * @test/compile-error
2838780Snsouch */
2938780Snsouch
3038780Snsouchfunction public() {"use strict"}
3138780Snsouch
3238780Snsouchfunction f(public) {"use strict"}
3338780Snsouch