From ada19a09a54cbcf8fef840d5c059845472273513 Mon Sep 17 00:00:00 2001 From: Jeeyong Um Date: Fri, 10 Sep 2021 14:35:07 +0900 Subject: [PATCH] Add a test for --no-missing-ricardian-clause --- .../compile-pass/no-missing-ricardian-clause.cpp | 12 ++++++++++++ .../compile-pass/no-missing-ricardian-clause.json | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/toolchain/compile-pass/no-missing-ricardian-clause.cpp create mode 100644 tests/toolchain/compile-pass/no-missing-ricardian-clause.json diff --git a/tests/toolchain/compile-pass/no-missing-ricardian-clause.cpp b/tests/toolchain/compile-pass/no-missing-ricardian-clause.cpp new file mode 100644 index 000000000..fb85c81ca --- /dev/null +++ b/tests/toolchain/compile-pass/no-missing-ricardian-clause.cpp @@ -0,0 +1,12 @@ +#include + +using namespace eosio; + +class [[eosio::contract]] no_missing_ricardian_clause : public contract { +public: + using contract::contract; + + [[eosio::action]] + void test1( name user ) { + } +}; diff --git a/tests/toolchain/compile-pass/no-missing-ricardian-clause.json b/tests/toolchain/compile-pass/no-missing-ricardian-clause.json new file mode 100644 index 000000000..b9bf2ba2b --- /dev/null +++ b/tests/toolchain/compile-pass/no-missing-ricardian-clause.json @@ -0,0 +1,11 @@ +{ + "tests" : [ + { + "compile_flags": ["--no-missing-ricardian-clause"], + "expected" : { + "exit-code": 0, + "stdout": "" + } + } + ] +}