summaryrefslogtreecommitdiff
path: root/test/AnnotationTest.thrift
diff options
context:
space:
mode:
authorJames E. King, III <jking@apache.org>2017-02-13 16:39:59 -0500
committerJames E. King, III <jking@apache.org>2017-02-13 16:39:59 -0500
commitb4c190b6ea960c20a420089b1431042e435c73e9 (patch)
tree247219a1e99a0fbaf1738121a50fd4be3c46096e /test/AnnotationTest.thrift
parent36628a28e975e4d680fff66eec3e66c06ca86bf2 (diff)
downloadthrift-b4c190b6ea960c20a420089b1431042e435c73e9.tar.gz
THRIFT-4060 add better support in the cpp generator for custom ostream operators on structures
Client: C++ This closes #1172
Diffstat (limited to 'test/AnnotationTest.thrift')
-rw-r--r--test/AnnotationTest.thrift9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/AnnotationTest.thrift b/test/AnnotationTest.thrift
index 191995aca..7e24e1ccb 100644
--- a/test/AnnotationTest.thrift
+++ b/test/AnnotationTest.thrift
@@ -57,6 +57,15 @@ senum seasons {
"Winter"
} ( foo = "bar" )
+struct ostr_default {
+ 1: i32 bar;
+}
+
+struct ostr_custom {
+ 1: i32 bar;
+} (cpp.customostream)
+
+
service foo_service {
void foo() ( foo = "bar" )
} (a.b="c")