aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ASTJSON/documentation.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-04 01:41:35 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-04 02:35:50 +0800
commit55386ba130122f5f739f4b08f82436ebd27a2087 (patch)
tree8f9412f467747e4a4e59503586b3519e943c9fbb /test/libsolidity/ASTJSON/documentation.sol
parentd923926ff7ceaad551fe76afb356266e28a2a1ea (diff)
downloaddexon-solidity-55386ba130122f5f739f4b08f82436ebd27a2087.tar.gz
dexon-solidity-55386ba130122f5f739f4b08f82436ebd27a2087.tar.zst
dexon-solidity-55386ba130122f5f739f4b08f82436ebd27a2087.zip
Extract AST JSON tests.
Diffstat (limited to 'test/libsolidity/ASTJSON/documentation.sol')
-rw-r--r--test/libsolidity/ASTJSON/documentation.sol17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/libsolidity/ASTJSON/documentation.sol b/test/libsolidity/ASTJSON/documentation.sol
new file mode 100644
index 00000000..e65af9b4
--- /dev/null
+++ b/test/libsolidity/ASTJSON/documentation.sol
@@ -0,0 +1,17 @@
+// ---- SOURCE: a
+
+/**This contract is empty*/ contract C {}
+
+// ---- SOURCE: b
+
+/**This contract is empty
+ and has a line-breaking comment.*/
+contract C {}
+
+// ---- SOURCE: c
+
+contract C {
+ /** Some comment on Evt.*/ event Evt();
+ /** Some comment on mod.*/ modifier mod() { _; }
+ /** Some comment on fn.*/ function fn() public {}
+}