pdl: Add Packet_Reserved_Field canonical test

This test was already working, just needed to be added.

Tag: #feature
Bug: 233340330
Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
(cherry picked from https://android-review.googlesource.com/q/commit:fed8932ce6b299c8883a87050c6338860301267f)
Merged-In: I81f0e4c85fa61da9010bfa2a592839a55ae8979a
Change-Id: I81f0e4c85fa61da9010bfa2a592839a55ae8979a
diff --git a/tools/pdl/src/bin/generate-canonical-tests.rs b/tools/pdl/src/bin/generate-canonical-tests.rs
index 4e8b2da..9ecfb7a 100644
--- a/tools/pdl/src/bin/generate-canonical-tests.rs
+++ b/tools/pdl/src/bin/generate-canonical-tests.rs
@@ -160,6 +160,7 @@
             "Packet_Payload_Field_VariableSize",
             "Packet_Payload_Field_UnknownSize",
             "Packet_Payload_Field_UnknownSize_Terminal",
+            "Packet_Reserved_Field",
             "ScalarChild_A",
             "ScalarChild_B",
             "EnumChild_A",
diff --git a/tools/pdl/tests/canonical/be_rust_test_file.pdl b/tools/pdl/tests/canonical/be_rust_test_file.pdl
index 9cc064d..bd7e65f 100644
--- a/tools/pdl/tests/canonical/be_rust_test_file.pdl
+++ b/tools/pdl/tests/canonical/be_rust_test_file.pdl
@@ -42,8 +42,13 @@
     c: 57,
 }
 
-// Array fields
-// Array element types
+// The parser must be able to handle bit fields with reserved fields
+// up to 64 bits wide.  The parser should generate a static size guard.
+packet Packet_Reserved_Field {
+    a: 7,
+    _reserved_: 2,
+    c: 55,
+}
 
 // The parser must be able to handle bit fields with size fields
 // up to 64 bits wide.  The parser should generate a static size guard.
diff --git a/tools/pdl/tests/canonical/le_rust_test_file.pdl b/tools/pdl/tests/canonical/le_rust_test_file.pdl
index ab81ac0..8227e05 100644
--- a/tools/pdl/tests/canonical/le_rust_test_file.pdl
+++ b/tools/pdl/tests/canonical/le_rust_test_file.pdl
@@ -42,8 +42,13 @@
     c: 57,
 }
 
-// Array fields
-// Array element types
+// The parser must be able to handle bit fields with reserved fields
+// up to 64 bits wide.  The parser should generate a static size guard.
+packet Packet_Reserved_Field {
+    a: 7,
+    _reserved_: 2,
+    c: 55,
+}
 
 // The parser must be able to handle bit fields with size fields
 // up to 64 bits wide.  The parser should generate a static size guard.