summaryrefslogtreecommitdiff
path: root/test/DocTest.thrift
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2016-03-06 19:02:42 +0100
committerJens Geyer <jensg@apache.org>2016-03-07 00:19:21 +0100
commit775671aea41ea55427dd78d7ce68e282cc9b8487 (patch)
tree63874625c1466a11a98d0b56556981c6f1f5d327 /test/DocTest.thrift
parentaf9d2ac69e6638066db75654ba289bc7d98777a5 (diff)
downloadthrift-775671aea41ea55427dd78d7ce68e282cc9b8487.tar.gz
THRIFT-3709 Comment syntax can produce broken code
Client: Compiler(general) Patch: Jens Geyer
Diffstat (limited to 'test/DocTest.thrift')
-rw-r--r--test/DocTest.thrift30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/DocTest.thrift b/test/DocTest.thrift
index 5d205b7b8..70575c114 100644
--- a/test/DocTest.thrift
+++ b/test/DocTest.thrift
@@ -254,4 +254,34 @@ typedef i32 TestFor3501a
*/
typedef i32 TestFor3501b
+
+/* Comment-end tokens can of course have more than one asterisk */
+struct TestFor3709_00 { /* ? */ 1: i32 foo }
+/* Comment-end tokens can of course have more than one asterisk **/
+struct TestFor3709_01 { /* ? */ 1: i32 foo }
+/* Comment-end tokens can of course have more than one asterisk ***/
+struct TestFor3709_02 { /* ? */ 1: i32 foo }
+/** Comment-end tokens can of course have more than one asterisk */
+struct TestFor3709_03 { /* ? */ 1: i32 foo }
+/** Comment-end tokens can of course have more than one asterisk **/
+struct TestFor3709_04 { /* ? */ 1: i32 foo }
+/** Comment-end tokens can of course have more than one asterisk ***/
+struct TestFor3709_05 { /* ? */ 1: i32 foo }
+/*** Comment-end tokens can of course have more than one asterisk */
+struct TestFor3709_06 { /* ? */ 1: i32 foo }
+/*** Comment-end tokens can of course have more than one asterisk **/
+struct TestFor3709_07 { /* ? */ 1: i32 foo }
+/*** Comment-end tokens can of course have more than one asterisk ***/
+struct TestFor3709_08 { /* ? */ 1: i32 foo }
+
+struct TestFor3709 {
+ /** This is a comment */
+ 1: required string id,
+ /** This is also a comment **/
+ 2: required string typeId,
+ /** Yet another comment! */
+ 3: required i32 endTimestamp
+}
+
+
/* THE END */