Commit 33c0f25b authored by Richard Henderson's avatar Richard Henderson
Browse files

tests/decode: Test non-overlapping groups

parent 067e8b0f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
# 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
%sub2 8:8

# Make sure braces are matched
{
  top        00000000 00000000 00000000 00000000
  [
    sub1     00000000 00000000 00000000 ........ %sub1
    sub2     00000000 00000000 ........ ........ %sub1 %sub2
  }
}
+6 −0
Original line number Diff line number Diff line
# 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.

# Make sure braces are matched
{
  [
+14 −0
Original line number Diff line number Diff line
# 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
%sub2 8:8

# The exclusive group should error for overlap.
{
  top        00000000 00000000 00000000 00000000
  [
    sub1     00000000 00000000 00000000 ........ %sub1
    sub2     00000000 00000000 ........ ........ %sub1 %sub2
  ]
}
+11 −0
Original line number Diff line number Diff line
# 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  00000000 a:8 b:8 c:8
    sub2  00000001 a:8 b:8 c:8
    sub3  00000010 a:8 b:8 c:8
  ]
  sub4    000000 d:2 a:8 b:8 c:8
}