mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Even more license tests
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
// 0.3-LPG :reifitnedI-esneciL-XDPS
|
||||
// NOTE: The text above is reversed using Unicode directional marks. In raw form it would look like this:
|
||||
// <LRO>0.3-LPG :reifitnedI-esneciL-XDPS<PDF>
|
||||
contract C {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
contract C {}
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
@@ -0,0 +1 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.␍// SPDX-License-Identifier: GPL-3.0␍contract C {}␍
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
||||
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
}
|
||||
// ----
|
||||
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
|
||||
@@ -0,0 +1,5 @@
|
||||
import "// SPDX-License-Identifier: GPL-3.0";
|
||||
contract C {}
|
||||
// ----
|
||||
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
|
||||
// ParserError 6275: (0-45): Source "// SPDX-License-Identifier: GPL-3.0" not found: File not supplied initially.
|
||||
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
bytes license = "// SPDX-License-Identifier: GPL-3.0";
|
||||
}
|
||||
// ----
|
||||
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
// SPDX-License-Identifier GPL-3.0
|
||||
contract C {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
/* SPDX-License-Identifier: GPL-3.0 */
|
||||
contract C {}
|
||||
@@ -1,2 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
/// SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
/** SPDX-License-Identifier: GPL-3.0 */
|
||||
contract C {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
//SPDX-License-Identifier:GPL-3.0
|
||||
contract C {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
/*SPDX-License-Identifier:GPL-3.0*/
|
||||
contract C {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// This test is actually useless, as the test suite adds the automatic preamble.
|
||||
pragma solidity >= 0.0; // SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
||||
@@ -1,2 +1,3 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
// NOTE: Trailing space at the end of the line above is intentional.
|
||||
contract C {}
|
||||
|
||||
Reference in New Issue
Block a user