aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiple_files
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple_files')
-rw-r--r--tests/multiple_files/multifile1.proto2
-rw-r--r--tests/multiple_files/multifile2.proto2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/multiple_files/multifile1.proto b/tests/multiple_files/multifile1.proto
index d804b67d..18f2c672 100644
--- a/tests/multiple_files/multifile1.proto
+++ b/tests/multiple_files/multifile1.proto
@@ -1,3 +1,5 @@
+syntax = "proto2";
+
message SubMessage {
optional string stringvalue = 1;
repeated int32 int32value = 2;
diff --git a/tests/multiple_files/multifile2.proto b/tests/multiple_files/multifile2.proto
index 66cb8a0b..4af45fd9 100644
--- a/tests/multiple_files/multifile2.proto
+++ b/tests/multiple_files/multifile2.proto
@@ -1,5 +1,7 @@
// Test if including generated header file for this file + implicit include of
// multifile2.pb.h still compiles. Used with test_compiles.c.
+syntax = "proto2";
+
import "multifile1.proto";
message Callback2Message {