Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add a test for --no-missing-ricardian-clause
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Sep 10, 2021
1 parent 58d2b28 commit ada19a0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/toolchain/compile-pass/no-missing-ricardian-clause.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <eosio/eosio.hpp>

using namespace eosio;

class [[eosio::contract]] no_missing_ricardian_clause : public contract {
public:
using contract::contract;

[[eosio::action]]
void test1( name user ) {
}
};
11 changes: 11 additions & 0 deletions tests/toolchain/compile-pass/no-missing-ricardian-clause.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tests" : [
{
"compile_flags": ["--no-missing-ricardian-clause"],
"expected" : {
"exit-code": 0,
"stdout": ""
}
}
]
}

0 comments on commit ada19a0

Please sign in to comment.