From 5b769bbb457a0222b58b738a9b8be7a67e10dd34 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 28 Nov 2014 10:00:37 +0100 Subject: mds-kbdc: simplification of alternations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../valid/nested_alternations_in_macro_call | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test-files/mds-kbdc/simplify-tree/valid/nested_alternations_in_macro_call (limited to 'test-files/mds-kbdc/simplify-tree/valid/nested_alternations_in_macro_call') diff --git a/test-files/mds-kbdc/simplify-tree/valid/nested_alternations_in_macro_call b/test-files/mds-kbdc/simplify-tree/valid/nested_alternations_in_macro_call new file mode 100644 index 0000000..d40a68d --- /dev/null +++ b/test-files/mds-kbdc/simplify-tree/valid/nested_alternations_in_macro_call @@ -0,0 +1,29 @@ +my_macro([[1 2] [3 4]]) + +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments +# (string (@ 1 11-12) ‘1’) +# ) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments +# (string (@ 1 13-14) ‘2’) +# ) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments +# (string (@ 1 17-18) ‘3’) +# ) +# ) +# (macro_call (@ 1 0-8) ‘my_macro’ +# (.arguments +# (string (@ 1 19-20) ‘4’) +# ) +# ) +# :1:10–11: warning: alternation inside alternation is unnecessary +# my_macro([[1 2] [3 4]]) +# ^ +# :1:16–17: warning: alternation inside alternation is unnecessary +# my_macro([[1 2] [3 4]]) +# ^ + -- cgit v1.2.3-70-g09d2