summaryrefslogtreecommitdiffstats
path: root/tests/multiple_files/multifile2.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-12 13:27:56 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-12 13:27:56 +0300
commit936cfdc675c2dc3580c2459e8b1773a1d0bf9a8b (patch)
tree3337c87f74cb16b66ef4b5dda501ce0cc9392bc1 /tests/multiple_files/multifile2.proto
parent708084e7883a95dd7fd315cdc909f6664491c043 (diff)
Expand the multiple_files test case to include oneofs and enums
Diffstat (limited to 'tests/multiple_files/multifile2.proto')
-rw-r--r--tests/multiple_files/multifile2.proto21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/multiple_files/multifile2.proto b/tests/multiple_files/multifile2.proto
new file mode 100644
index 00000000..c5dcd406
--- /dev/null
+++ b/tests/multiple_files/multifile2.proto
@@ -0,0 +1,21 @@
+// Test if including generated header file for this file + implicit include of
+// multifile2.pb.h still compiles. Used with test_compiles.c.
+import "multifile1.proto";
+
+message Callback2Message {
+ required TestMessage tstmsg = 1;
+ required SubMessage submsg = 2;
+}
+
+message OneofMessage {
+ oneof msgs {
+ TestMessage tstmsg = 1;
+ SubMessage submsg = 2;
+ }
+}
+
+message Enums {
+ required SignedEnum senum = 1;
+ required UnsignedEnum uenum = 2;
+}
+