Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
14426422
Commit
14426422
authored
Feb 25, 2017
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t/issue251/: Add test case for #251
parent
638c54d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
9 deletions
+52
-9
Makefile.am
Makefile.am
+28
-9
t/issue251/.gitignore
t/issue251/.gitignore
+1
-0
t/issue251/issue251.c
t/issue251/issue251.c
+12
-0
t/issue251/issue251.proto
t/issue251/issue251.proto
+11
-0
No files found.
Makefile.am
View file @
14426422
...
...
@@ -178,6 +178,19 @@ t/test-full.pb.cc t/test-full.pb.h: @PROTOC@ $(top_srcdir)/t/test-full.proto
t/generated-code2/test-full-cxx-output.inc
:
t/generated-code2/cxx-generate-packed-data$(EXEEXT)
$(AM_V_GEN)$(top_builddir)
/t/generated-code2/cxx-generate-packed-data
$(EXEEXT)
>
$(top_builddir)
/t/generated-code2/test-full-cxx-output.inc
BUILT_SOURCES
+=
\
t/test.pb-c.c t/test.pb-c.h
\
t/test-full.pb-c.c t/test-full.pb-c.h
\
t/test-optimized.pb-c.c t/test-optimized.pb-c.h
\
t/test-full.pb.cc t/test-full.pb.h
\
t/generated-code2/test-full-cxx-output.inc
t_version_version_SOURCES
=
\
t/version/version.c
t_version_version_LDADD
=
\
protobuf-c/libprotobuf-c.la
# Issue #220
check_PROGRAMS
+=
\
t/issue220/issue220
TESTS
+=
\
...
...
@@ -194,17 +207,23 @@ BUILT_SOURCES += \
EXTRA_DIST
+=
\
t/issue220/issue220.proto
# Issue #251
check_PROGRAMS
+=
\
t/issue251/issue251
TESTS
+=
\
t/issue251/issue251
t_issue251_issue251_SOURCES
=
\
t/issue251/issue251.c
\
t/issue251/issue251.pb-c.c
t_issue251_issue251_LDADD
=
\
protobuf-c/libprotobuf-c.la
t/issue251/issue251.pb-c.c t/issue251/issue251.pb-c.h
:
$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue251/issue251.proto
$(AM_V_GEN)
@PROTOC@
--plugin
=
$(top_builddir)
/protoc-c/protoc-gen-c
$(EXEEXT)
-I
$(top_srcdir)
--c_out
=
$(top_builddir)
$(top_srcdir)
/t/issue251/issue251.proto
BUILT_SOURCES
+=
\
t/test.pb-c.c t/test.pb-c.h
\
t/test-full.pb-c.c t/test-full.pb-c.h
\
t/test-optimized.pb-c.c t/test-optimized.pb-c.h
\
t/test-full.pb.cc t/test-full.pb.h
\
t/generated-code2/test-full-cxx-output.inc
t/issue251/issue251.pb-c.c t/issue251/issue251.pb-c.h
EXTRA_DIST
+=
\
t/issue251/issue251.proto
t_version_version_SOURCES
=
\
t/version/version.c
t_version_version_LDADD
=
\
protobuf-c/libprotobuf-c.la
endif
# CROSS_COMPILING
endif
# BUILD_COMPILER
...
...
t/issue251/.gitignore
0 → 100644
View file @
14426422
issue251
t/issue251/issue251.c
0 → 100644
View file @
14426422
#include <stdlib.h>
#include "t/issue251/issue251.pb-c.h"
int
main
(
void
)
{
/*
* The problem in #251 caused invalid code to be generated in the
* .pb-c.h file, so there's nothing for us to do here.
*/
return
EXIT_SUCCESS
;
}
t/issue251/issue251.proto
0 → 100644
View file @
14426422
message
two_oneofs
{
oneof
first_oneof
{
bool
a
=
10
;
bool
b
=
11
;
}
oneof
second_oneof
{
bool
c
=
20
;
bool
d
=
21
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment