diff --git a/test/libsolidity/ASTJSON/smoke_license.json b/test/libsolidity/ASTJSON/smoke_license.json new file mode 100644 index 000000000000..e8c6616a3cd5 --- /dev/null +++ b/test/libsolidity/ASTJSON/smoke_license.json @@ -0,0 +1,35 @@ +{ + "absolutePath": "a", + "exportedSymbols": + { + "C": + [ + 1 + ] + }, + "id": 2, + "license": "GPL-3.0", + "nodeType": "SourceUnit", + "nodes": + [ + { + "abstract": false, + "baseContracts": [], + "contractDependencies": [], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "id": 1, + "linearizedBaseContracts": + [ + 1 + ], + "name": "C", + "nodeType": "ContractDefinition", + "nodes": [], + "scope": 2, + "src": "36:13:1" + } + ], + "src": "36:14:1" +} diff --git a/test/libsolidity/ASTJSON/smoke_license.sol b/test/libsolidity/ASTJSON/smoke_license.sol new file mode 100644 index 000000000000..92ffb8fa642f --- /dev/null +++ b/test/libsolidity/ASTJSON/smoke_license.sol @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-3.0 +contract C {} + +// ---- diff --git a/test/libsolidity/ASTJSON/smoke_license_legacy.json b/test/libsolidity/ASTJSON/smoke_license_legacy.json new file mode 100644 index 000000000000..2f1405b62cef --- /dev/null +++ b/test/libsolidity/ASTJSON/smoke_license_legacy.json @@ -0,0 +1,50 @@ +{ + "attributes": + { + "absolutePath": "a", + "exportedSymbols": + { + "C": + [ + 1 + ] + }, + "license": "GPL-3.0" + }, + "children": + [ + { + "attributes": + { + "abstract": false, + "baseContracts": + [ + null + ], + "contractDependencies": + [ + null + ], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "linearizedBaseContracts": + [ + 1 + ], + "name": "C", + "nodes": + [ + null + ], + "scope": 2 + }, + "id": 1, + "name": "ContractDefinition", + "src": "36:13:1" + } + ], + "id": 2, + "name": "SourceUnit", + "src": "36:14:1" +}