summaryrefslogtreecommitdiff
path: root/tests/monster_test.fbs
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2017-08-24 12:55:35 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2017-08-24 13:39:45 -0700
commit321a1c9dc0bb2205feb1bb9fd079546403aa852f (patch)
treeb70dae087ee8e6ed9faed173dbae9a3f50af4f5d /tests/monster_test.fbs
parentac1015e3c417ecb18d8f449a4e6aaaff3c4f53b9 (diff)
downloadflatbuffers-321a1c9dc0bb2205feb1bb9fd079546403aa852f.tar.gz
flatbuffers-321a1c9dc0bb2205feb1bb9fd079546403aa852f.tar.bz2
flatbuffers-321a1c9dc0bb2205feb1bb9fd079546403aa852f.zip
Cleaned up namespace handling.
A Namespace object is now guaranteed unique. This cleaned up some old workarounds and latent bugs. Change-Id: Ic3f12d89947871b03b2c449ba51b3186f953adde Tested: on Linux. Bug: 21336857
Diffstat (limited to 'tests/monster_test.fbs')
-rwxr-xr-xtests/monster_test.fbs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/monster_test.fbs b/tests/monster_test.fbs
index 41cacef8..53493a1e 100755
--- a/tests/monster_test.fbs
+++ b/tests/monster_test.fbs
@@ -2,6 +2,10 @@
include "include_test1.fbs";
+namespace MyGame;
+
+table InParentNamespace {}
+
namespace MyGame.Example2;
table Monster {} // Test having same name as below, but in different namespace.
@@ -77,6 +81,7 @@ table Monster {
flex:[ubyte] (id:30, flexbuffer);
vector_of_longs:[long] (id:32);
vector_of_doubles:[double] (id:33);
+ parent_namespace_test:InParentNamespace (id:34);
}
table TypeAliases {