From 049a2a3bbc7c7e4f29dd56dcf819f734ef173979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Bueno=20L=C3=B3pez?= <69244257+JLBuenoLopez-eProsima@users.noreply.github.com> Date: Tue, 13 Feb 2024 07:26:22 +0100 Subject: [PATCH] Test case: scoped structures (#25) Signed-off-by: JLBuenoLopez-eProsima --- IDL/structures.idl | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/IDL/structures.idl b/IDL/structures.idl index 5536208..82ddd10 100644 --- a/IDL/structures.idl +++ b/IDL/structures.idl @@ -162,3 +162,37 @@ struct Structures StructBitset var_StructBitset; StructEmpty var_StructEmpty; }; + +module testing_1 +{ + struct foo + { + long a; + long b; + }; +}; + +module testing_2 +{ + struct foo + { + boolean d; + }; +}; + +struct bar +{ + double e; +}; + +struct root1 +{ + testing_1::foo foo_struct; + float c; +}; + +struct root2 +{ + testing_2::foo foo_struct; + bar bar_struct; +};