Do not insert SPDX identifier if already present in SyntaxTest

This commit is contained in:
Alex Beregszaszi
2021-01-18 16:15:17 +01:00
committed by Kamil Śliwak
parent 5bbb017915
commit 6f1f0c5bbc
4 changed files with 18 additions and 3 deletions
@@ -1 +1,2 @@
// This test is actually useless, as the test suite adds the automatic preamble.
contract C {}
@@ -1,3 +1,4 @@
// This is just ignored:
// SPDX-License-Identifier: ⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒
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.