From 151ebc8a2925bca5210ac447156a6a783f1d9337 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 19 Apr 2019 16:19:57 -0700 Subject: Fixed oneof case accessor to cast to enum for C++. --- tests/json/test.proto | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/json/test.proto') diff --git a/tests/json/test.proto b/tests/json/test.proto index e659001..2db0388 100644 --- a/tests/json/test.proto +++ b/tests/json/test.proto @@ -29,6 +29,11 @@ message TestMessage { map map_string_int32 = 23; map map_string_bool = 24; map map_string_msg = 25; + + oneof o { + int32 oneof_int32 = 26; + int64 oneof_int64 = 27; + } } message SubMessage { -- cgit v1.2.3