summaryrefslogtreecommitdiff
path: root/tests/include_test
diff options
context:
space:
mode:
authorRobbie McElrath <robbiemcelrath@gmail.com>2017-06-26 09:07:02 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2017-06-26 09:07:02 -0700
commit0e85eeef2c6ed3eb9ec201aaea6caa62612a8522 (patch)
treef6e425619917039c5c7557fcf325306050512abb /tests/include_test
parentb0fa5e0f4200a18013201f72b580df2c156c8c32 (diff)
downloadflatbuffers-0e85eeef2c6ed3eb9ec201aaea6caa62612a8522.tar.gz
flatbuffers-0e85eeef2c6ed3eb9ec201aaea6caa62612a8522.tar.bz2
flatbuffers-0e85eeef2c6ed3eb9ec201aaea6caa62612a8522.zip
Make inter-file cycles compile (#4364)
Diffstat (limited to 'tests/include_test')
-rw-r--r--tests/include_test/include_test1.fbs4
-rw-r--r--tests/include_test/sub/include_test2.fbs5
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/include_test/include_test1.fbs b/tests/include_test/include_test1.fbs
index 39bc666b..804856a2 100644
--- a/tests/include_test/include_test1.fbs
+++ b/tests/include_test/include_test1.fbs
@@ -2,4 +2,6 @@ include "sub/include_test2.fbs";
include "sub/include_test2.fbs"; // should be skipped
include "include_test1.fbs"; // should be skipped
-
+table TableA {
+ b:MyGame.OtherNameSpace.TableB;
+}
diff --git a/tests/include_test/sub/include_test2.fbs b/tests/include_test/sub/include_test2.fbs
index 13aa229e..3257ffc1 100644
--- a/tests/include_test/sub/include_test2.fbs
+++ b/tests/include_test/sub/include_test2.fbs
@@ -1,3 +1,4 @@
+include "include_test1.fbs";
include "sub/include_test2.fbs"; // should be skipped
namespace MyGame.OtherNameSpace;
@@ -6,4 +7,6 @@ enum FromInclude:long { IncludeVal }
struct Unused {}
-
+table TableB {
+ a:TableA;
+}