summaryrefslogtreecommitdiffstats
path: root/tests/decode/err_pattern_group_ident2.decode
diff options
context:
space:
mode:
authorBastian Koppelmann2019-02-27 13:02:17 +0100
committerRichard Henderson2019-03-12 17:46:58 +0100
commitbf92118fa9dda4a425da7f75d43ad7b4df8d5650 (patch)
treed8425420b4f0b6d75e7a6c8f87cf404572afd99b /tests/decode/err_pattern_group_ident2.decode
parentdecodetree: Allow grouping of overlapping patterns (diff)
downloadqemu-bf92118fa9dda4a425da7f75d43ad7b4df8d5650.tar.gz
qemu-bf92118fa9dda4a425da7f75d43ad7b4df8d5650.tar.xz
qemu-bf92118fa9dda4a425da7f75d43ad7b4df8d5650.zip
test/decode: Add tests for PatternGroups
This adds one test that supposed to succeed to test deep nesting of pattern groups which is rarely exercised by targets using decode tree. The remaining tests exercise various fail conditions. Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Message-Id: <20190227120217.20794-1-kbastian@mail.uni-paderborn.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/decode/err_pattern_group_ident2.decode')
-rw-r--r--tests/decode/err_pattern_group_ident2.decode11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/decode/err_pattern_group_ident2.decode b/tests/decode/err_pattern_group_ident2.decode
new file mode 100644
index 0000000000..bc859233b1
--- /dev/null
+++ b/tests/decode/err_pattern_group_ident2.decode
@@ -0,0 +1,11 @@
+# This work is licensed under the terms of the GNU LGPL, version 2 or later.
+# See the COPYING.LIB file in the top-level directory.
+
+%sub1 0:8
+
+# Make sure that indentation is enforced
+{
+ top 00000000 00000000 00000000 00000000
+ sub1 00000000 00000000 00000000 ........ %sub1
+# comments are suposed to be indented
+}