summaryrefslogtreecommitdiff
path: root/test/EnumTest.thrift
diff options
context:
space:
mode:
authorVivek Jain <vivek@vivekja.in>2016-09-07 10:34:25 -0700
committerJames E. King, III <jking@apache.org>2017-02-18 14:30:46 -0500
commit655b9b6ef86c45b423a194abee2a9cd057a16a74 (patch)
treed70bcf291f0db2d9e87978b321e0946d7c3e1ba9 /test/EnumTest.thrift
parent400b346db2510fffa06c0ced11105e3618ce5367 (diff)
downloadthrift-655b9b6ef86c45b423a194abee2a9cd057a16a74.tar.gz
THRIFT-3921: Add ostream operator<< functions for enums (working with THRIFT-4060)
Client: C++ This closes #1083 This closes #1194
Diffstat (limited to 'test/EnumTest.thrift')
-rw-r--r--test/EnumTest.thrift5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/EnumTest.thrift b/test/EnumTest.thrift
index f38cec30d..7961f3841 100644
--- a/test/EnumTest.thrift
+++ b/test/EnumTest.thrift
@@ -71,6 +71,11 @@ enum MyEnum5 {
e2 = 42 // fails with 0.9.3 and earlier
}
+enum MyEnumWithCustomOstream {
+ custom1 = 1,
+ CustoM2
+} (cpp.customostream)
+
struct MyStruct {
1: MyEnum2 me2_2 = MyEnum1.ME2_2
2: MyEnum3 me3_n2 = MyEnum3.ME3_N2