-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test fails without the fix to issue #99, and passes with it. The failure is a bit odd -- it doesn't fail because cdt-cpp crashes; rather, it fails because the crashed cdt-cpp did not output an abi file and therefore it cannot match the golden record... But hey, it does test the issue, just rather indirectly. =)
- Loading branch information
1 parent
347c4d3
commit 53fefe5
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT ", | ||
"version": "eosio::abi/1.2", | ||
"types": [], | ||
"structs": [ | ||
{ | ||
"name": "TaggedNumber_3472950412842106880", | ||
"base": "", | ||
"fields": [ | ||
{ | ||
"name": "value", | ||
"type": "uint64" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "test", | ||
"base": "", | ||
"fields": [ | ||
{ | ||
"name": "", | ||
"type": "TaggedNumber_3472950412842106880" | ||
} | ||
] | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"name": "test", | ||
"type": "test", | ||
"ricardian_contract": "" | ||
} | ||
], | ||
"tables": [], | ||
"ricardian_clauses": [], | ||
"variants": [], | ||
"action_results": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <eosio/eosio.hpp> | ||
|
||
using namespace eosio; | ||
|
||
template<uint64_t Tag> | ||
struct TaggedNumber { | ||
uint64_t value; | ||
}; | ||
|
||
class [[eosio::contract]] tagged_number_test : public contract { | ||
public: | ||
using contract::contract; | ||
|
||
[[eosio::action]] | ||
void test(TaggedNumber<"a.tag"_n.value>) { | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"tests" : [ | ||
{ | ||
"expected" : { | ||
"abi-file" : "tagged_number_test.abi" | ||
} | ||
} | ||
] | ||
} |