From 4c86c6b333878c28db0b2e9af843dc1ca1c963fd Mon Sep 17 00:00:00 2001 From: Ilya Lipnitskiy Date: Wed, 13 May 2020 11:31:16 -0700 Subject: [PATCH] Add test for #389 --- Makefile.am | 9 +++++++++ t/issue389/issue389.proto | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 t/issue389/issue389.proto diff --git a/Makefile.am b/Makefile.am index cf96cbb..c4474cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -265,6 +265,15 @@ t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h: $(top_builddir)/protoc-c/ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto BUILT_SOURCES += \ t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h + +t_issue330_issue330_SOURCES += \ + t/issue389/issue389.pb-c.c # Tack onto issue330 since there is no need for a separate binary here +t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue389/issue389.proto + $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue389/issue389.proto +BUILT_SOURCES += \ + t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h +EXTRA_DIST += \ + t/issue389/issue389.proto endif # BUILD_PROTO3 EXTRA_DIST += \ t/issue330/issue330.proto diff --git a/t/issue389/issue389.proto b/t/issue389/issue389.proto new file mode 100644 index 0000000..d731848 --- /dev/null +++ b/t/issue389/issue389.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +message EnumIntTest { + enum Label { + LABEL_1 = 0; + LABEL_2 = 1; + } + oneof label { + Label label_label = 123; + uint64 label_uint64 = 124; + } +}